diff options
| -rw-r--r-- | background_scripts/main.coffee | 1 | ||||
| -rw-r--r-- | lib/utils.coffee | 1 | 
2 files changed, 2 insertions, 0 deletions
| diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 15292ab6..412b8781 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -5,6 +5,7 @@ root = exports ? window  chrome.runtime.onInstalled.addListener ({ reason }) ->    # See https://developer.chrome.com/extensions/runtime#event-onInstalled    return if reason in [ "chrome_update", "shared_module_update" ] +  return if Utils.isFirefox()    manifest = chrome.runtime.getManifest()    # Content scripts loaded on every page should be in the same group. We assume it is the first.    contentScripts = manifest.content_scripts[0] diff --git a/lib/utils.coffee b/lib/utils.coffee index 78eed12c..520d5b8c 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -7,6 +7,7 @@ window.forTrusted ?= (handler) -> (event) ->      true  Utils = +  isFirefox: -> 0 <= navigator.userAgent.indexOf "Firefox"    getCurrentVersion: ->      chrome.runtime.getManifest().version | 
