LINT
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user