Skip to content

Commit c57d05f

Browse files
authored
add icon for shortcut (#820)
1 parent 9f36ad6 commit c57d05f

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

manifests/manifest-pwa.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"scope": "/",
3+
"icons": [{
4+
"src": "/images/icon.svg",
5+
"type": "image/svg+xml",
6+
"sizes": "any",
7+
"purpose": "any maskable"
8+
}]
9+
}

scripts/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ postCompile () {
8383
if [[ $1 = "chrome" ]] || [[ $1 = "edge" ]]; then
8484
cp manifests/schema-chrome.json $1/schema.json
8585
fi
86+
87+
cp manifests/manifest-pwa.json $1/manifest-pwa.json
8688
}
8789

8890
if [[ $PLATFORM = "prod" ]]; then

view/popup.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<head>
55
<meta charset="utf-8" />
6+
<link rel="manifest" href="/manifest-pwa.json">
67
<link href="../css/popup.css"
78
type="text/css"
89
rel="stylesheet"

0 commit comments

Comments
 (0)