Skip to content

Commit

Permalink
Minor change in manifest to get rid of warning in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Dec 6, 2019
1 parent 516f6e1 commit 51e074f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"background": {
"scripts": ["background.js"],
"persistent": false
"persistent": true
},
"content_scripts": [
{
Expand Down
2 changes: 2 additions & 0 deletions pack_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit 51e074f

Please sign in to comment.