Skip to content

Commit 8083d1c

Browse files
committed
feat(pwa): Use build timestamp for $pwa.version
Signed-off-by: Khusika Dhamar Gusti <[email protected]>
1 parent 3657cf5 commit 8083d1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

layouts/_partials/pwa.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{- $pwa := .Scratch.Get "pwa" -}}
1+
{{- $pwa := dict "version" now.Unix -}}
2+
{{- .Scratch.Set "pwa" $pwa -}}
23
<script>
34
if ('serviceWorker' in navigator) {
45
navigator.serviceWorker

0 commit comments

Comments
 (0)