mirror of https://github.com/gorhill/uBlock.git
code review #2014: gracefully deal with importing from a pre-1.9.12 module
This commit is contained in:
parent
56176c8eb7
commit
d721b83e21
|
@ -34,7 +34,14 @@
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// https://developer.mozilla.org/en-US/Firefox/Multiprocess_Firefox/Message_Manager/Frame_script_loading_and_lifetime#Unloading_frame_scripts
|
||||||
|
// There is no way to unload a frame script, so when the extension will
|
||||||
|
// update, it may happen `processObserver` is not available because of
|
||||||
|
// trying to import from an older module version.
|
||||||
|
// TODO: remove the test once everybody is updated to 1.9.10+.
|
||||||
|
if ( processObserver ) {
|
||||||
processObserver.start();
|
processObserver.start();
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue