Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorAlireza Ahmand <mr.alireza.ahmand@gmail.com>2024-02-17 19:23:22 +0300
committerGitHub <noreply@github.com>2024-02-17 19:23:22 +0300
commit3a503f12c8826fa7197f08f5af50c1911f3adcfe (patch)
tree7b884e5572be93c561ab28edde895c4b3865b1a0 /web/html
parent2b7ad7cb9b0ea29f00b739905de0628ae9f166f9 (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.html10
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;