diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-05-01 17:45:23 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-05-01 17:45:23 +0200 |
commit | a877c17dc1ea541a54e46e3c3214e4d96b70e6cc (patch) | |
tree | 166ce13676ef0017896a68ec9022d4e2497918a8 /assets/sw-register.js | |
parent | e2ffa7b3ad920d577cc56fbaaea12a99be125774 (diff) |
Add precache to service worker
Diffstat (limited to 'assets/sw-register.js')
-rw-r--r-- | assets/sw-register.js | 2 |
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 }}", |