aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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
}