Skip to content

Commit

Permalink
add icon for shortcut (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneezry authored Dec 31, 2021
1 parent 9f36ad6 commit c57d05f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifests/manifest-pwa.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"scope": "/",
"icons": [{
"src": "/images/icon.svg",
"type": "image/svg+xml",
"sizes": "any",
"purpose": "any maskable"
}]
}
2 changes: 2 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions view/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="utf-8" />
<link rel="manifest" href="/manifest-pwa.json">
<link href="../css/popup.css"
type="text/css"
rel="stylesheet"
Expand Down

0 comments on commit c57d05f

Please sign in to comment.