mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-03-13 08:28:13 -04:00
Handle error when getting a tab that no longer exists. Fix #382.
This commit is contained in:
parent
974ef69912
commit
53aba6b0ea
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user