Browse Source

Apply settings before DOM loaded.

pull/6187/head
Josh 4 years ago
committed by GitHub
parent
commit
e2d4c6d2b1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      docs/_static/settings.js

5
docs/_static/settings.js

@ -94,10 +94,13 @@ function updateSetting(element) {
}
}
for (const setting of settings) {
setting.load();
}
document.addEventListener('DOMContentLoaded', () => {
settingsModal = new Modal(document.querySelector('div#settings.modal'));
for (const setting of settings) {
setting.load();
setting.setElement();
}
});

Loading…
Cancel
Save