PWA work
parent
3f6faf4ded
commit
e598cbe85a
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 677 B |
Binary file not shown.
After Width: | Height: | Size: 810 B |
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,16 @@
|
||||
{
|
||||
"short_name": "{{ .Shortname }}",
|
||||
"start_url": "./",
|
||||
"icons": [
|
||||
{{ range .Icons }}
|
||||
{
|
||||
"src": "{ .Src }",
|
||||
"sizes": "{ .Size }",
|
||||
"type": "{ .Type }"
|
||||
}
|
||||
{{ end }}
|
||||
],
|
||||
"background_color": "#DDDDDD",
|
||||
"theme_color": "#111111",
|
||||
"display": "minimal-ui"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
self.addEventListener('install', (event) => {
|
||||
console.log("Service worker installed")
|
||||
});
|
||||
|
||||
self.addEventListener('activate', (event) => {
|
||||
console.log("Service worker activated")
|
||||
});
|
||||
|
||||
self.addEventListener('fetch', (event) => {
|
||||
event.respondWith(
|
||||
fetch(event.request)
|
||||
);
|
||||
});
|
Loading…
Reference in New Issue