From 2473e77b30af44e1bc5466c130a22dc1e5e9c27f Mon Sep 17 00:00:00 2001 From: Zhe Li Date: Sat, 1 Jan 2022 04:56:09 +0800 Subject: [PATCH] add icon for shortcut --- manifests/manifest-pwa.json | 9 +++++++++ scripts/build.sh | 2 ++ view/popup.html | 1 + 3 files changed, 12 insertions(+) create mode 100644 manifests/manifest-pwa.json diff --git a/manifests/manifest-pwa.json b/manifests/manifest-pwa.json new file mode 100644 index 000000000..e17585a9e --- /dev/null +++ b/manifests/manifest-pwa.json @@ -0,0 +1,9 @@ +{ + "scope": "/", + "icons": [{ + "src": "/images/icon.svg", + "type": "image/svg+xml", + "sizes": "any", + "purpose": "any maskable" + }] +} \ No newline at end of file diff --git a/scripts/build.sh b/scripts/build.sh index 94922ed74..541789f90 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -83,6 +83,8 @@ postCompile () { if [[ $1 = "chrome" ]] || [[ $1 = "edge" ]]; then cp manifests/schema-chrome.json $1/schema.json fi + + cp manifests/manifest-pwa.json $1/manifest-pwa.json } if [[ $PLATFORM = "prod" ]]; then diff --git a/view/popup.html b/view/popup.html index e1ad783f8..eae94ccd5 100644 --- a/view/popup.html +++ b/view/popup.html @@ -3,6 +3,7 @@ +