states-editor - dynamic module

This commit is contained in:
Azgaar 2022-05-15 16:03:47 +03:00
parent c87c12295b
commit 4fcd62bb99
7 changed files with 1360 additions and 1345 deletions

View file

@ -1093,3 +1093,10 @@ function refreshAllEditors() {
if (document.getElementById("zonesEditorRefresh").offsetParent) zonesEditorRefresh.click();
TIME && console.timeEnd("refreshAllEditors");
}
// dynamically loaded editors
async function editStates() {
if (customization) return;
const StateEditor = await import("../dynamic/editors/states-editor.js");
StateEditor.open();
}