diff options
| author | Alireza Ahmand <mr.alireza.ahmand@gmail.com> | 2024-02-17 19:23:22 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-17 19:23:22 +0300 |
| commit | 3a503f12c8826fa7197f08f5af50c1911f3adcfe (patch) | |
| tree | 7b884e5572be93c561ab28edde895c4b3865b1a0 /web/html | |
| parent | 2b7ad7cb9b0ea29f00b739905de0628ae9f166f9 (diff) | |
Progressive Web App (#1678)
* pwa support
* Create go.yml
* Delete .github/workflows/go.yml
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/common/head.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web/html/common/head.html b/web/html/common/head.html index 4fa2ea8a..e20cdc24 100644 --- a/web/html/common/head.html +++ b/web/html/common/head.html @@ -9,6 +9,16 @@ <link rel="stylesheet" href="{{ .base_path }}assets/css/custom.css?{{ .cur_ver }}"> <link rel=”icon” type=”image/x-icon” href="{{ .base_path }}assets/favicon.ico"> <link rel="shortcut icon" type="image/x-icon" href="{{ .base_path }}assets/favicon.ico"> + <link rel="manifest" href="{{ .base_path }}assets/manifest.json"> + + <script> + if ('serviceWorker' in navigator) { + navigator.serviceWorker.register('{{ .base_path }}assets/js/sw.js') + .then(function () { + console.log('Service Worker Registered'); + }); + } + </script> <style> [v-cloak] { display: none; |
