From dd961bbff7ae6d7474fe1455a6999c66f77b1cb4 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Thu, 19 Oct 2017 17:06:59 +0100 Subject: (FF android) Guard against undefined chrome.browserAction.setIcon --- background_scripts/main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background_scripts') 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 -- cgit v1.2.3