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

Firefox: fixed content scripts?

This commit is contained in:
Deathamns 2015-01-09 07:58:07 +01:00 committed by gorhill
parent 5f92ce4599
commit a6acb50892

View file

@ -149,14 +149,16 @@ vAPI.messaging = {
/******************************************************************************/
var toggleListener = function({type, persisted}) {
if ( !persisted || !vAPI.messaging.connector ) {
if ( !vAPI.messaging.connector ) {
return;
}
if ( type === 'pagehide' ) {
removeMessageListener();
return;
}
else {
if ( persisted ) {
addMessageListener(vAPI.messaging.connector);
}
};