From a877c17dc1ea541a54e46e3c3214e4d96b70e6cc Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 1 May 2020 17:45:23 +0200 Subject: Add precache to service worker --- assets/sw-register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets/sw-register.js') 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 }}", -- cgit v1.2.3