Clean up shared worker changes
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 33s

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-07-25 17:07:16 -07:00
parent 6ab643a16f
commit 0d96174279
2 changed files with 1 additions and 7 deletions

View File

@@ -44,7 +44,6 @@ export default {
this.getImage(tempCVS.toDataURL())
},
async videoFrameDetect (vidData) {
//const vidWorker = new SharedWorker(this.detectWorkerURL,{type: 'module'})
const vidWorker = new detectionWorker()
vidWorker.port.onmessage = (eVid) => {
self = this

View File

@@ -179,8 +179,7 @@
videoDeviceAvailable: false,
videoAvailable: false,
cameraStream: null,
infoLinkPos: {},
detectWorkerURL: null
infoLinkPos: {}
}
},
setup() {
@@ -215,11 +214,8 @@
})
var loadServerSettings = localStorage.getItem('serverSettings')
if (loadServerSettings) this.serverSettings = JSON.parse(loadServerSettings)
this.detectWorkerURL = new URL('../assets/detect-worker.js', import.meta.url)
},
mounted () {
console.log(this.detectWorkerURL)
//const mountWorker = new SharedWorker(this.detectWorkerURL,{type: 'module'})
const mountWorker = new detectionWorker()
mountWorker.port.onmessage = (eMount) => {
self = this
@@ -297,7 +293,6 @@
return `--chip-media-gradient: conic-gradient(from ${270 - (confFactor * 360 / 2)}deg, hsl(${confFactor * 120}deg, 100%, 50%) ${confFactor}turn, hsl(${confFactor * 120}deg, 50%, 66%) ${confFactor}turn)`
},
async setData () {
//const detectWorker = new SharedWorker(this.detectWorkerURL,{type: 'module'})
const detectWorker = new detectionWorker()
detectWorker.port.onmessage = (eDetect) => {
self = this