-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: support
PWA
progressive web app
- Loading branch information
1 parent
8e78ff1
commit 05728b8
Showing
5 changed files
with
59 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const manifest = { | ||
background_color: '#000000', | ||
display: 'fullscreen', | ||
icons: [ | ||
{ | ||
sizes: '192x192', | ||
src: 'https://npm.elemecdn.com/@lobehub/assets-favicons/assets/android-chrome-192x192.png', | ||
type: 'image/png', | ||
}, | ||
{ | ||
sizes: '512x512', | ||
src: 'https://npm.elemecdn.com/@lobehub/assets-favicons/assets/android-chrome-512x512.png', | ||
type: 'image/png', | ||
}, | ||
], | ||
name: 'Stable Diffusion', | ||
orientation: 'portrait', | ||
short_name: 'Stable Diffusion', | ||
start_url: location.origin, | ||
theme_color: '#000000', | ||
}; | ||
|
||
export default `data:application/manifest+json;base64,${btoa(JSON.stringify(manifest))}`; |