Browse Source

Firefox: get the version number from the fragment

pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
5cac2aea84
  1. 8
      platform/firefox/bootstrap.js

8
platform/firefox/bootstrap.js

@ -60,7 +60,7 @@ function startup(data, reason) {
); );
bgProcess.setAttribute( bgProcess.setAttribute(
'src', 'src',
'chrome://' + hostName + '/content/background.html'
'chrome://' + hostName + '/content/background.html#' + data.version
); );
restartListener.messageManager.addMessageListener( restartListener.messageManager.addMessageListener(
@ -104,13 +104,15 @@ function shutdown(data, reason) {
bgProcess.parentNode.removeChild(bgProcess); bgProcess.parentNode.removeChild(bgProcess);
if ( data === undefined ) {
return;
}
// Remove the restartObserver only when the extension is being disabled // Remove the restartObserver only when the extension is being disabled
if ( data !== undefined ) {
restartListener.messageManager.removeMessageListener( restartListener.messageManager.removeMessageListener(
hostName + '-restart', hostName + '-restart',
restartListener restartListener
); );
}
} }
/******************************************************************************/ /******************************************************************************/

Loading…
Cancel
Save