diff --git a/edit/lint.js b/edit/lint.js index 8fc56ac1..262b67ca 100644 --- a/edit/lint.js +++ b/edit/lint.js @@ -60,7 +60,10 @@ function updateLintReport(cm, delay) { return; } if (delay > 0) { - setTimeout(cm => { cm.performLint(); update(cm); }, delay, cm); + setTimeout(cm => { + cm.performLint(); + update(cm); + }, delay, cm); return; } // eslint-disable-next-line no-var diff --git a/js/dom.js b/js/dom.js index 884b7036..c56a2b4b 100644 --- a/js/dom.js +++ b/js/dom.js @@ -126,7 +126,10 @@ function injectScript(properties) { Object.assign(script, properties); if (!properties.onload) { return new Promise(resolve => { - script.onload = () => { script.onload = null; resolve(); }; + script.onload = () => { + script.onload = null; + resolve(); + }; }); } }