Firefox: load content-scripts on extension start

pull/2/head
Deathamns 9 years ago committed by gorhill
parent d3223766c8
commit fd3e24713f

@ -299,7 +299,11 @@ const contentObserver = {
}
};
doc.addEventListener('DOMContentLoaded', docReady, true);
if ( doc.readyState === 'loading') {
doc.addEventListener('DOMContentLoaded', docReady, true);
} else {
docReady({ target: doc, type: 'DOMContentLoaded' });
}
}
};

Loading…
Cancel
Save