Removed redundant code and file

This commit is contained in:
Jesse Malotaux 2025-04-12 15:33:00 +02:00
parent c9850dcbf8
commit 836b6ae3a3
2 changed files with 1 additions and 17 deletions

View file

@ -23,7 +23,6 @@ import { RouterView, useRoute } from 'vue-router'
import { useDeviceStore } from './stores/device'
import { isLocal } from './services/ApiService'
import AlertComp from './components/base/AlertComp.vue'
import { ConfigGet } from './services/ConfigService'
const device = useDeviceStore()
@ -31,14 +30,11 @@ const route = useRoute()
const handshake = ref(false)
onMounted(() => {
// const port = await ConfigGet('MCRM__PORT')
// console.log(port)
// Setting device uuid from localstorage
// If not present in LocalStorage a new uuidV4 will be generated
device.uuid()
// appHandshake()
appHandshake()
device.$subscribe(() => {
if (device.key()) handshake.value = true

View file

@ -1,12 +0,0 @@
import axios from 'axios'
import { appUrl } from './ApiService'
export const ConfigGet = async (key) => {
console.log(window.__CONFIG__)
const config = await axios.get(appUrl() + '/config.json')
if (!config.data) return false
return config.data[key]
}