aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authormrmr19932017-10-19 17:06:59 +0100
committermrmr19932017-10-19 17:13:21 +0100
commitdd961bbff7ae6d7474fe1455a6999c66f77b1cb4 (patch)
treefd5f616d04592453bbccbc28e41e1fc268ba315f /background_scripts
parent701c2ab36c880276525c81b48029deb8620ec307 (diff)
downloadvimium-dd961bbff7ae6d7474fe1455a6999c66f77b1cb4.tar.bz2
(FF android) Guard against undefined chrome.browserAction.setIcon
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 2bbbd85d..725766e6 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -324,7 +324,7 @@ Frames =
enabledState = Exclusions.isEnabledForUrl request.url
if request.frameIsFocused
- chrome.browserAction.setIcon tabId: tabId, imageData: do ->
+ chrome.browserAction.setIcon? tabId: tabId, imageData: do ->
enabledStateIcon =
if not enabledState.isEnabledForUrl
DISABLED_ICON