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;
function doBroadcast() {
if (BG && BG === window && !BG.dbExec.initialized) {
window.addEventListener('storageReady', function _() {
window.removeEventListener('storageReady', _);
doBroadcast();
});
return;
}
// if (BG && BG === window && !BG.dbExec.initialized) {
// window.addEventListener('storageReady', function _() {
// window.removeEventListener('storageReady', _);
// doBroadcast();
// });
// return;
// }
const affects = {
all: 'disableAll' in broadcastPrefs
|| 'exposeIframes' in broadcastPrefs,

View File

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