mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2025-01-03 11:20:07 -05:00
Add more global variables
This commit is contained in:
parent
3ab275fff9
commit
4add6a19c4
1 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,11 @@ const app = createApp(App).use(i18n)
|
|||
// 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")
|
||||
app.provide('protocol', https ? 'https://' : 'http://')
|
||||
|
||||
const protocol = https ? 'https://' : 'http://'
|
||||
app.provide('protocol', protocol)
|
||||
app.provide('rootUrl', `${protocol}${import.meta.env.SAFETWITCH_INSTANCE_DOMAIN}`)
|
||||
app.provide('rootBackendUrl', `${protocol}${import.meta.env.SAFETWITCH_BACKEND_DOMAIN}`)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue