1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-16 15:33:38 +01:00
This commit is contained in:
Chris 2015-05-31 19:00:11 -06:00
parent 8d0ce5f9d5
commit 51042f8f70

View File

@ -870,9 +870,10 @@
broadcast: true,
msg: message
};
var page;
for(var tabId in vAPI.tabs.stack) {
vAPI.tabs.stack[tabId].page.dispatchMessage('broadcast', message);
page = vAPI.tabs.stack[tabId].page;
page && page.dispatchMessage && page.dispatchMessage('broadcast', message);
}
};