From 51e074f438f4ace6f3615e73422a14d140a09bcc Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Fri, 6 Dec 2019 20:35:35 +0100 Subject: [PATCH] Minor change in manifest to get rid of warning in Firefox --- manifest.json | 2 +- pack_plugin.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 3c71ae9..1c1d0b4 100644 --- a/manifest.json +++ b/manifest.json @@ -13,7 +13,7 @@ ], "background": { "scripts": ["background.js"], - "persistent": false + "persistent": true }, "content_scripts": [ { diff --git a/pack_plugin.sh b/pack_plugin.sh index 9ca3169..bd0441f 100755 --- a/pack_plugin.sh +++ b/pack_plugin.sh @@ -49,6 +49,8 @@ rm -rf .git/ *.md pack_plugin.sh translation-assistant/ if [[ $browser = 'chrome' ]];then # We need to exclude Firefox-specific manifest entries grep -v -e gecko -e browser_specific_settings manifest.json > tmp + # More chrome specific things + sed -i 's/"persistent": true/"persistent": false/' tmp mv tmp manifest.json fi zip -r $PACKAGE_NAME.zip *