minor ES6 improvements

This commit is contained in:
JFH
2021-07-25 14:18:57 +02:00
parent a454a6342d
commit f6041b5740
2 changed files with 5 additions and 22 deletions

View File

@@ -61,16 +61,14 @@ class EditorStartup {
* @returns {void}
*/
async init () {
if ('localStorage' in window) { // && onWeb removed so Webkit works locally
if ('localStorage' in window) {
this.storage = window.localStorage;
}
this.configObj.load();
const self = this;
const { i18next } = await putLocale(this.configObj.pref('lang'), this.goodLangs);
this.i18next = i18next;
// eslint-disable-next-line no-unsanitized/method
await import(`./components/index.js`);
// eslint-disable-next-line no-unsanitized/method
await import(`./dialogs/index.js`);
// allow to prepare the dom without display
this.$svgEditor.style.visibility = 'hidden';