diff options
author | Ajay Ramachandran <[email protected]> | 2019-10-30 23:38:13 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-30 23:38:13 -0400 |
commit | e82beb861a2696e2df85f5cd8d419e277a38da14 (patch) | |
tree | d3d42d3bde54874afc5a5cb8750c9cf34cdc22d6 | |
parent | cba5b05c0c00a1ce0eafe521c6f92c496d733ba8 (diff) | |
parent | 01405dd32ebd453367b166412214dd8ff77bb845 (diff) | |
download | SponsorBlock-e82beb861a2696e2df85f5cd8d419e277a38da14.tar.gz SponsorBlock-e82beb861a2696e2df85f5cd8d419e277a38da14.zip |
Merge pull request #153 from owendaprile/firefox-optimizations
Some Firefox Optimizations
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | background.js | 4 | ||||
-rw-r--r-- | firefox_manifest-extra.json | 8 | ||||
-rw-r--r-- | manifest.json | 6 |
4 files changed, 10 insertions, 11 deletions
@@ -1,2 +1,3 @@ config.js -ignored
\ No newline at end of file +ignored +.idea/
\ No newline at end of file diff --git a/background.js b/background.js index 28fd6bb0..e397bb16 100644 --- a/background.js +++ b/background.js @@ -1,7 +1,7 @@ -chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { +chrome.tabs.onUpdated.addListener(function(tabId) { chrome.tabs.sendMessage(tabId, { message: 'update', - }); + }, () => void chrome.runtime.lastError ); // Suppress error on Firefox }); chrome.runtime.onMessage.addListener(function (request, sender, callback) { diff --git a/firefox_manifest-extra.json b/firefox_manifest-extra.json deleted file mode 100644 index 7625cd66..00000000 --- a/firefox_manifest-extra.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "browser_specific_settings": { - "gecko": { - "id": "[email protected]", - "strict_min_version": "57.0" - } - } -} diff --git a/manifest.json b/manifest.json index 10778193..494ac8b0 100644 --- a/manifest.json +++ b/manifest.json @@ -65,5 +65,11 @@ "128": "icons/LogoSponsorBlocker128px.png", "256": "icons/LogoSponsorBlocker256px.png" }, + "browser_specific_settings": { + "gecko": { + "id": "[email protected]", + "strict_min_version": "57.0" + } + }, "manifest_version": 2 } |