aboutsummaryrefslogtreecommitdiff
path: root/assets/sw-register.js
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-05-01 17:45:23 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-05-01 17:45:23 +0200
commita877c17dc1ea541a54e46e3c3214e4d96b70e6cc (patch)
tree166ce13676ef0017896a68ec9022d4e2497918a8 /assets/sw-register.js
parente2ffa7b3ad920d577cc56fbaaea12a99be125774 (diff)
Add precache to service worker
Diffstat (limited to 'assets/sw-register.js')
-rw-r--r--assets/sw-register.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/sw-register.js b/assets/sw-register.js
index 0b71f03..b67dbfd 100644
--- a/assets/sw-register.js
+++ b/assets/sw-register.js
@@ -1,4 +1,4 @@
-{{ $swJS := resources.Get "sw.js" | resources.ExecuteAsTemplate "sw.js" . }}
+{{- $swJS := resources.Get "sw.js" | resources.ExecuteAsTemplate "sw.js" . -}}
if (navigator.serviceWorker) {
navigator.serviceWorker.register(
"{{ $swJS.RelPermalink }}",