mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-29 08:41:11 +13:00
Firefox: get the version number from the fragment
This commit is contained in:
parent
73945064ed
commit
5cac2aea84
1 changed files with 9 additions and 7 deletions
16
platform/firefox/bootstrap.js
vendored
16
platform/firefox/bootstrap.js
vendored
|
@ -60,7 +60,7 @@ function startup(data, reason) {
|
|||
);
|
||||
bgProcess.setAttribute(
|
||||
'src',
|
||||
'chrome://' + hostName + '/content/background.html'
|
||||
'chrome://' + hostName + '/content/background.html#' + data.version
|
||||
);
|
||||
|
||||
restartListener.messageManager.addMessageListener(
|
||||
|
@ -104,13 +104,15 @@ function shutdown(data, reason) {
|
|||
|
||||
bgProcess.parentNode.removeChild(bgProcess);
|
||||
|
||||
// Remove the restartObserver only when the extension is being disabled
|
||||
if ( data !== undefined ) {
|
||||
restartListener.messageManager.removeMessageListener(
|
||||
hostName + '-restart',
|
||||
restartListener
|
||||
);
|
||||
if ( data === undefined ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove the restartObserver only when the extension is being disabled
|
||||
restartListener.messageManager.removeMessageListener(
|
||||
hostName + '-restart',
|
||||
restartListener
|
||||
);
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue