Move worker url call to detect page create
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 31s

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-07-25 16:27:45 -07:00
parent 1d4f8c8ecd
commit 3f0860534d

View File

@@ -178,7 +178,7 @@
videoAvailable: false,
cameraStream: null,
infoLinkPos: {},
detectWorkerURL: new URL('../assets/detect-worker.js', import.meta.url)
detectWorkerURL: null
}
},
setup() {
@@ -213,6 +213,7 @@
})
var loadServerSettings = localStorage.getItem('serverSettings')
if (loadServerSettings) this.serverSettings = JSON.parse(loadServerSettings)
this.detectWorkerURL = new URL('../assets/detect-worker.js', import.meta.url)
},
mounted () {
const mountWorker = new SharedWorker(this.detectWorkerURL,{type: 'module'})