aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2019-10-30 23:38:13 -0400
committerGitHub <[email protected]>2019-10-30 23:38:13 -0400
commite82beb861a2696e2df85f5cd8d419e277a38da14 (patch)
treed3d42d3bde54874afc5a5cb8750c9cf34cdc22d6
parentcba5b05c0c00a1ce0eafe521c6f92c496d733ba8 (diff)
parent01405dd32ebd453367b166412214dd8ff77bb845 (diff)
downloadSponsorBlock-e82beb861a2696e2df85f5cd8d419e277a38da14.tar.gz
SponsorBlock-e82beb861a2696e2df85f5cd8d419e277a38da14.zip
Merge pull request #153 from owendaprile/firefox-optimizations
Some Firefox Optimizations
-rw-r--r--.gitignore3
-rw-r--r--background.js4
-rw-r--r--firefox_manifest-extra.json8
-rw-r--r--manifest.json6
4 files changed, 10 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index 0af10d9b..1bd01fa0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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": {
- "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": {
+ "strict_min_version": "57.0"
+ }
+ },
"manifest_version": 2
}