diff options
| author | mrmr1993 | 2017-08-17 19:49:07 +0100 |
|---|---|---|
| committer | mrmr1993 | 2017-09-12 11:42:18 +0100 |
| commit | 4d148a48ec375db2dc86f09f274bf5c3f76cce39 (patch) | |
| tree | e0c706fba36602383ff4805b199bf50c3f3354d6 /background_scripts | |
| parent | f3b186c0228f68e15e6c8d2aad53c227efb187f4 (diff) | |
| download | vimium-4d148a48ec375db2dc86f09f274bf5c3f76cce39.tar.bz2 | |
Add Utils.isFirefox
This also stops the content scripts from being injected into each frame
on reload (in Firefox only). They do not successfully connect to the
background page, and it causes considerable lag, so we lose nothing by
doing this.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/main.coffee | 1 |
1 files changed, 1 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] |
