diff --git a/omega-target-chromium-extension/src/tabs.coffee b/omega-target-chromium-extension/src/tabs.coffee index 59ea6cd..cac9de3 100644 --- a/omega-target-chromium-extension/src/tabs.coffee +++ b/omega-target-chromium-extension/src/tabs.coffee @@ -40,8 +40,9 @@ class ChromeTabs try chrome.browserAction.setBadgeText(text: '', tabId: id) @_badgeTab = null if not tab.url? or tab.url.indexOf("chrome") == 0 - chrome.browserAction.setTitle(title: @_defaultAction.title, tabId: tab.id) - @clearIcon tab.id + if @_defaultAction + chrome.browserAction.setTitle(title: @_defaultAction.title, tabId: tab.id) + @clearIcon tab.id return @actionForUrl(tab.url).then (action) => @setIcon(action.icon, tab.id)