mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-09 04:54:41 +00:00
sw.js: fix TypeError with new workbox.
This commit is contained in:
parent
7dc41e299b
commit
002cd8fc9a
1 changed files with 3 additions and 2 deletions
5
sw.js
5
sw.js
|
|
@ -1,4 +1,5 @@
|
||||||
|
/* global workbox:false */
|
||||||
|
|
||||||
self.importScripts('/assets/js/vendor/{fileName}')
|
self.importScripts('/assets/js/vendor/{fileName}')
|
||||||
|
|
||||||
const workboxSW = new self.WorkboxSW()
|
workbox.precaching.precacheAndRoute([])
|
||||||
workboxSW.precaching.precacheAndRoute([])
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue