Skip to content

Commit

Permalink
Handle error when getting a tab that no longer exists. Fix #382.
Browse files Browse the repository at this point in the history
  • Loading branch information
FelisCatus committed Apr 4, 2015
1 parent 974ef69 commit 53aba6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions omega-target-chromium-extension/src/tabs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class ChromeTabs
chrome.tabs.onUpdated.addListener @onUpdated.bind(this)
chrome.tabs.onActivated.addListener (info) =>
chrome.tabs.get info.tabId, (tab) =>
return if chrome.runtime.lastError
if @_dirtyTabs.hasOwnProperty(info.tabId)
@onUpdated tab.id, {}, tab

Expand Down

0 comments on commit 53aba6b

Please sign in to comment.