mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
code review #2014: gracefully deal with importing from a pre-1.9.12 module
This commit is contained in:
parent
56176c8eb7
commit
d721b83e21
1 changed files with 8 additions and 1 deletions
|
@ -34,7 +34,14 @@
|
|||
null
|
||||
);
|
||||
|
||||
processObserver.start();
|
||||
// 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();
|
||||
}
|
||||
})();
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue