1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 08:15:03 +12:00

Firefox: load content-scripts on extension start

This commit is contained in:
Deathamns 2015-03-12 18:20:48 +01:00 committed by gorhill
parent d3223766c8
commit fd3e24713f

View file

@ -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' });
}
}
};