Fix root of model urls
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 36s

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-08-15 16:48:50 -07:00
parent 401e5831c7
commit 46b5ba7d6e
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ let model = null
onmessage = function (e) {
switch (e.data.call) {
case 'loadModel':
loadModel('.' + e.data.weights,e.data.preload).then(() => {
loadModel(e.data.weights,e.data.preload).then(() => {
postMessage({success: 'model'})
}).catch((err) => {
postMessage({error: true, message: err.message})

View File

@@ -190,7 +190,7 @@
created () {
let loadOtherSettings = localStorage.getItem('otherSettings')
if (loadOtherSettings) this.otherSettings = JSON.parse(loadOtherSettings)
let modelRoot = this.isCordova ? 'https://localhost' : '.'
let modelRoot = this.isCordova ? 'https://localhost' : ''
this.detectorName = this.f7route.params.region
switch (this.detectorName) {
case 'thorax':