Add conf.yaml PWA config #168
@@ -4,7 +4,7 @@ regions:
|
||||
- thorax
|
||||
- abdomen
|
||||
- limbs
|
||||
#useExternal: required
|
||||
useExternal: required
|
||||
external:
|
||||
- name: Mserver
|
||||
address: "192.169.1.105"
|
||||
|
||||
@@ -74,9 +74,11 @@
|
||||
}
|
||||
},
|
||||
async created () {
|
||||
const confText = await fetch(`${!!window.cordova ? 'https://localhost' : '.'}/conf/conf.yaml`)
|
||||
if (!window.cordova) {
|
||||
const confText = await fetch('./conf/conf.yaml')
|
||||
.then((mod) => { return mod.text() })
|
||||
this.siteConf = YAML.parse(confText)
|
||||
}
|
||||
const loadSiteSettings = localStorage.getItem('siteSettings')
|
||||
if (loadSiteSettings) {
|
||||
let loadedSettings = JSON.parse(loadSiteSettings)
|
||||
|
||||
Reference in New Issue
Block a user