Skip to content

Commit

Permalink
fixed bg tab.id
Browse files Browse the repository at this point in the history
  • Loading branch information
swdyh committed Jul 4, 2012
1 parent 992d47a commit 19ba927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background.js
Expand Up @@ -42,7 +42,7 @@ function init() {
}
else if (message.name == 'launched') {
port.onMessage.addListener(function(message, con) {
var tabid = con.tab.id
var tabid = con.sender.tab.id
var path = 'icons/icon16.png'
chrome.pageAction.show(tabid)
chrome.pageAction.setIcon({tabId:tabid, path: path})
Expand Down

0 comments on commit 19ba927

Please sign in to comment.