Replace url parse with new url for safari
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 38s
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 38s
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -40,7 +40,8 @@ cordova/platforms/
|
|||||||
cordova/plugins/
|
cordova/plugins/
|
||||||
cordova/www/
|
cordova/www/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Production build
|
# Production build
|
||||||
www/
|
www/
|
||||||
|
|
||||||
|
# VSCode settings
|
||||||
|
.vscode/settings.json
|
||||||
|
|||||||
@@ -205,9 +205,14 @@
|
|||||||
this.activeRegion = 3
|
this.activeRegion = 3
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this.modelLocation = URL.parse(`../models/${this.detectorName}${this.otherSettings.mini ? '-mini' : ''}/model.json`,import.meta.url).href
|
let modelJ = `../models/${this.detectorName}${this.otherSettings.mini ? '-mini' : ''}/model.json`
|
||||||
this.miniLocation = URL.parse(`../models/${this.detectorName}-mini/model.json`,import.meta.url).href
|
let miniJ = `../models/${this.detectorName}-mini/model.json`
|
||||||
fetch(URL.parse(`../models/${this.detectorName}/classes.json`,import.meta.url).href)
|
this.modelLocation = new URL(modelJ,import.meta.url).href
|
||||||
|
this.miniLocation = new URL(miniJ,import.meta.url).href
|
||||||
|
console.log(this.modelLocation)
|
||||||
|
console.log(this.miniLocation)
|
||||||
|
let classesJ = `../models/${this.detectorName}/classes.json`
|
||||||
|
fetch(new URL(classesJ,import.meta.url).href)
|
||||||
.then((mod) => { return mod.json() })
|
.then((mod) => { return mod.json() })
|
||||||
.then((classes) => {
|
.then((classes) => {
|
||||||
this.classesList = classes
|
this.classesList = classes
|
||||||
|
|||||||
@@ -97,8 +97,7 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { touchstart } from 'dom7'
|
import RegionIcon from '../components/region-icon.vue'
|
||||||
import RegionIcon from '../components/region-icon.vue'
|
|
||||||
import store from '../js/store'
|
import store from '../js/store'
|
||||||
import { f7 } from 'framework7-vue'
|
import { f7 } from 'framework7-vue'
|
||||||
|
|
||||||
@@ -113,6 +112,11 @@ import RegionIcon from '../components/region-icon.vue'
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
|
//URL TESTING CODE
|
||||||
|
//let testUrl = URL.parse(`../models/thorax/model.json`,import.meta.url).href
|
||||||
|
//console.log(testUrl)
|
||||||
|
//let testUrl2 = new URL(`../models/thorax/model.json`,import.meta.url)
|
||||||
|
//console.log(testUrl2)
|
||||||
return store()
|
return store()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user