misc: add version number to service worker as its needed for updates
This commit is contained in:
1 parent
8488bb1e17
commit
2f64f37d3a
1 file changed
+1
-1
@@ -3,8 +3,8 @@
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { build, files } from '$service-worker'
|
import { build, files } from '$service-worker'
|
||||||
|
|
||||||
|
const version = '0.4.6'
|
||||||
const timestamp = new Date().toLocaleString('en')
|
const timestamp = new Date().toLocaleString('en')
|
||||||
|
|
||||||
const worker = self as unknown as ServiceWorkerGlobalScope
|
const worker = self as unknown as ServiceWorkerGlobalScope
|
||||||
const FILES = `cache${timestamp}`
|
const FILES = `cache${timestamp}`
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user