Load model process based on safari store value

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-08-12 17:28:48 -07:00
parent 7a19b9c43c
commit bb0b7273f9
5 changed files with 190 additions and 3 deletions

View File

@@ -9,7 +9,8 @@ const state = reactive({
useExternal: 'optional',
siteDemo: false,
externalServerList: [],
infoUrl: false
infoUrl: false,
safariBrowser: false
})
const set = (config, confObj) => {
@@ -21,6 +22,10 @@ const agree = () => {
state.disclaimerAgreement = true
}
const safariDetected = () => {
state.safariBrowser = true
}
const getServerList = () => {
if (state.useExternal == 'required') {
return state.externalServerList[0]
@@ -50,8 +55,10 @@ export default () => ({
getVersion: computed(() => state.version),
getIconSet: computed(() => state.regionIconSet),
getInfoUrl: computed(() => state.infoUrl),
isSafari: computed(() => state.safariBrowser),
set,
agree,
safariDetected,
getServerList,
toggleFullscreen
})