mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-03-28 22:30:46 +01:00
20 lines
No EOL
488 B
JavaScript
20 lines
No EOL
488 B
JavaScript
import './main.scss';
|
|
|
|
import { DEFAULT_DICTIONARY } from './constants';
|
|
import setupListeners from './js/setupListeners';
|
|
import { renderAll } from './js/render';
|
|
import { cloneObject } from './helpers';
|
|
|
|
function initialize() {
|
|
console.log('initializing');
|
|
window.currentDictionary = cloneObject(DEFAULT_DICTIONARY);
|
|
setupListeners();
|
|
renderAll();
|
|
}
|
|
|
|
window.onload = (function (oldLoad) {
|
|
return function () {
|
|
oldLoad && oldLoad();
|
|
initialize();
|
|
}
|
|
})(window.onload); |