This commit is contained in:
dragongoose
2023-07-20 13:57:01 -04:00
parent 820ceda499
commit adcbfcb1be
37 changed files with 601 additions and 554 deletions

View File

@ -2,9 +2,8 @@ import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './assets/index.css'
import i18n from "./i18n"
import { version } from "../package.json"
import i18n from './i18n'
import { version } from '../package.json'
const app = createApp(App).use(i18n)
@ -12,7 +11,7 @@ const app = createApp(App).use(i18n)
// For some reason, import.meta.env.VITE_HTTPS === "true"
// returns false, even if it is true.
// Making a copy of the variable seems to work
const https = (import.meta.env.SAFETWITCH_HTTPS.slice() === "true")
const https = import.meta.env.SAFETWITCH_HTTPS.slice() === 'true'
const protocol = https ? 'https://' : 'http://'
const wsProtocol = https ? 'wss://' : 'ws://'
@ -51,4 +50,4 @@ addIcons(
app.component('v-icon', OhVueIcon)
app.use(router)
app.mount('#app')
app.mount('#app')