Fix root of model urls
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 36s
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:
@@ -5,7 +5,7 @@ let model = null
|
|||||||
onmessage = function (e) {
|
onmessage = function (e) {
|
||||||
switch (e.data.call) {
|
switch (e.data.call) {
|
||||||
case 'loadModel':
|
case 'loadModel':
|
||||||
loadModel('.' + e.data.weights,e.data.preload).then(() => {
|
loadModel(e.data.weights,e.data.preload).then(() => {
|
||||||
postMessage({success: 'model'})
|
postMessage({success: 'model'})
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
postMessage({error: true, message: err.message})
|
postMessage({error: true, message: err.message})
|
||||||
|
|||||||
@@ -190,7 +190,7 @@
|
|||||||
created () {
|
created () {
|
||||||
let loadOtherSettings = localStorage.getItem('otherSettings')
|
let loadOtherSettings = localStorage.getItem('otherSettings')
|
||||||
if (loadOtherSettings) this.otherSettings = JSON.parse(loadOtherSettings)
|
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
|
this.detectorName = this.f7route.params.region
|
||||||
switch (this.detectorName) {
|
switch (this.detectorName) {
|
||||||
case 'thorax':
|
case 'thorax':
|
||||||
|
|||||||
Reference in New Issue
Block a user