From 4b6517c0a6b6da47aa9598fe6a030f9a4ecfbeb8 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 6 Jun 2022 16:09:15 -0700 Subject: [PATCH] Use nativeMessaging permission in Safari extension but not Chrome --- apple/Makefile | 2 +- pkg/extension/src/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apple/Makefile b/apple/Makefile index 79c0c2661..4a35936ca 100644 --- a/apple/Makefile +++ b/apple/Makefile @@ -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 \ No newline at end of file diff --git a/pkg/extension/src/manifest.json b/pkg/extension/src/manifest.json index 180c8db5b..d542f0c49 100644 --- a/pkg/extension/src/manifest.json +++ b/pkg/extension/src/manifest.json @@ -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",