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();
sorter.init();
$$('[id^="manage.newUI"]')
.forEach(el => (el.oninput = (el.onchange = switchUI)));
prefs.subscribe(['manage.newUI'], () => switchUI());
switchUI({styleOnly: true});