Skip to content

Commit

Permalink
prevent multiple grooveshark tabs fix - check sender.tab exists first
Browse files Browse the repository at this point in the history
  • Loading branch information
adammw committed Dec 5, 2010
1 parent 0bc260a commit b81da2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sharkzapper_popup.html
Expand Up @@ -108,7 +108,7 @@
function(request, sender, sendResponse) {
console.log(request);
if (!request.command) return;
if (tabId && sender.tab.id != tabId) return; //stop multiple tabs sending us updates
if (tabId && sender.tab && sender.tab.id != tabId) return; //stop multiple tabs sending us updates
switch (request.command) {
case 'popupUpdate':
if (request.enabled) {
Expand Down

0 comments on commit b81da2b

Please sign in to comment.