1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-04-16 00:20:14 +02:00
Lexiconga/src/index.js

20 lines
488 B
JavaScript
Raw Normal View History

2019-05-02 10:57:56 -06:00
import './main.scss';
2019-05-02 15:45:10 -06:00
import { DEFAULT_DICTIONARY } from './constants';
import setupListeners from './js/setupListeners';
import { renderAll } from './js/render';
import { cloneObject } from './helpers';
2019-05-02 15:45:10 -06:00
2019-05-02 10:57:56 -06:00
function initialize() {
console.log('initializing');
window.currentDictionary = cloneObject(DEFAULT_DICTIONARY);
2019-05-02 15:45:10 -06:00
setupListeners();
renderAll();
2019-05-02 10:57:56 -06:00
}
window.onload = (function (oldLoad) {
return function () {
oldLoad && oldLoad();
initialize();
}
})(window.onload);