This commit is contained in:
eight 2018-10-04 15:57:02 +08:00
parent 6d32ffb76b
commit c01f93f62c
2 changed files with 10 additions and 7 deletions

View File

@ -319,13 +319,13 @@ var prefs = new function Prefs() {
return; return;
function doBroadcast() { function doBroadcast() {
if (BG && BG === window && !BG.dbExec.initialized) { // if (BG && BG === window && !BG.dbExec.initialized) {
window.addEventListener('storageReady', function _() { // window.addEventListener('storageReady', function _() {
window.removeEventListener('storageReady', _); // window.removeEventListener('storageReady', _);
doBroadcast(); // doBroadcast();
}); // });
return; // return;
} // }
const affects = { const affects = {
all: 'disableAll' in broadcastPrefs all: 'disableAll' in broadcastPrefs
|| 'exposeIframes' in broadcastPrefs, || 'exposeIframes' in broadcastPrefs,

View File

@ -31,6 +31,9 @@
"js/prefs.js", "js/prefs.js",
"js/script-loader.js", "js/script-loader.js",
"js/usercss.js", "js/usercss.js",
"js/cache.js",
"background/db.js",
"background/style-manager.js",
"background/background.js", "background/background.js",
"background/usercss-helper.js", "background/usercss-helper.js",
"background/style-via-api.js", "background/style-via-api.js",