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,
|
videoAvailable: false,
|
||||||
cameraStream: null,
|
cameraStream: null,
|
||||||
infoLinkPos: {},
|
infoLinkPos: {},
|
||||||
detectWorkerURL: new URL('../assets/detect-worker.js', import.meta.url)
|
detectWorkerURL: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
@@ -213,6 +213,7 @@
|
|||||||
})
|
})
|
||||||
var loadServerSettings = localStorage.getItem('serverSettings')
|
var loadServerSettings = localStorage.getItem('serverSettings')
|
||||||
if (loadServerSettings) this.serverSettings = JSON.parse(loadServerSettings)
|
if (loadServerSettings) this.serverSettings = JSON.parse(loadServerSettings)
|
||||||
|
this.detectWorkerURL = new URL('../assets/detect-worker.js', import.meta.url)
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
const mountWorker = new SharedWorker(this.detectWorkerURL,{type: 'module'})
|
const mountWorker = new SharedWorker(this.detectWorkerURL,{type: 'module'})
|
||||||
|
|||||||
Reference in New Issue
Block a user