Progressive Web App (#1678)

* pwa support

* Create go.yml

* Delete .github/workflows/go.yml
This commit is contained in:
Alireza Ahmand
2024-02-17 19:53:22 +03:30
committed by GitHub
parent 2b7ad7cb9b
commit 3a503f12c8
3 changed files with 90 additions and 0 deletions

View File

@@ -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;