This commit is contained in:
Chris 2015-05-31 19:00:11 -06:00
parent 8d0ce5f9d5
commit 51042f8f70
1 changed files with 3 additions and 2 deletions

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);
}
};