Use nativeMessaging permission in Safari extension but not Chrome

This commit is contained in:
Jackson Harper 2022-06-06 16:09:15 -07:00
parent ce5b949971
commit 4b6517c0a6
2 changed files with 2 additions and 2 deletions

View file

@ -7,4 +7,4 @@ graphql_gen:
extension_gen:
pushd ../pkg/extension/ && yarn build-prod && popd
cp -r ../pkg/extension/dist/* Sources/SafariExtension/Resources/.
cat ../pkg/extension/dist/manifest.json | jq '.background.persistent = false' > Sources/SafariExtension/Resources/manifest.json
cat ../pkg/extension/dist/manifest.json | jq '.background.persistent = false' | jq '.permissions = ["activeTab", "storage", "nativeMessaging", "https://*/**", "http://*/**"]' > Sources/SafariExtension/Resources/manifest.json

View file

@ -22,7 +22,7 @@
"256": "/images/extension/icon-256.png"
},
"permissions": ["activeTab", "storage", "nativeMessaging", "https://*/**", "http://*/**"],
"permissions": ["activeTab", "storage", "https://*/**", "http://*/**"],
"background": {
"page": "/views/background.html",