aboutsummaryrefslogtreecommitdiff
path: root/assets/sw-register.js
diff options
context:
space:
mode:
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 }}",