Move worker url call to detect page create
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 31s
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:
@@ -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'})
|
||||
|
||||
Reference in New Issue
Block a user