mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 23:08:13 -05:00
Fix a null error for _defaultAction in ChromeTabs.
This commit is contained in:
parent
49d434b481
commit
6e7b5150c1
@ -40,6 +40,7 @@ class ChromeTabs
|
|||||||
try chrome.browserAction.setBadgeText(text: '', tabId: id)
|
try chrome.browserAction.setBadgeText(text: '', tabId: id)
|
||||||
@_badgeTab = null
|
@_badgeTab = null
|
||||||
if not tab.url? or tab.url.indexOf("chrome") == 0
|
if not tab.url? or tab.url.indexOf("chrome") == 0
|
||||||
|
if @_defaultAction
|
||||||
chrome.browserAction.setTitle(title: @_defaultAction.title, tabId: tab.id)
|
chrome.browserAction.setTitle(title: @_defaultAction.title, tabId: tab.id)
|
||||||
@clearIcon tab.id
|
@clearIcon tab.id
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user