From: XhmikosR Date: Tue, 20 Mar 2018 15:22:05 +0000 (+0200) Subject: sw.js: fix TypeError with new workbox. X-Git-Tag: v4.1.0~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=002cd8fc9abd18b860bf2600a57a533cb0de5f6e;p=thirdparty%2Fbootstrap.git sw.js: fix TypeError with new workbox. --- diff --git a/sw.js b/sw.js index e1ab031ab4..1a49289a17 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,5 @@ +/* global workbox:false */ + self.importScripts('/assets/js/vendor/{fileName}') -const workboxSW = new self.WorkboxSW() -workboxSW.precaching.precacheAndRoute([]) +workbox.precaching.precacheAndRoute([])