Fix: the style is injected twice

This commit is contained in:
eight 2018-10-14 22:01:10 +08:00
parent 9a8a529793
commit 715d8e8d15

View File

@ -100,8 +100,7 @@ function initGlobalEvents() {
setupLivePrefs(); setupLivePrefs();
sorter.init(); sorter.init();
$$('[id^="manage.newUI"]') prefs.subscribe(['manage.newUI'], () => switchUI());
.forEach(el => (el.oninput = (el.onchange = switchUI)));
switchUI({styleOnly: true}); switchUI({styleOnly: true});