Skip to content

Commit

Permalink
fix(env): parse environment variable as string (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
pataar authored Feb 13, 2022
1 parent 04b6992 commit d3172fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/store/socket/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export const getDefaultState = (): SocketState => {
let hostname: string
let port: number

if (document.location.hostname === 'my.mainsail.xyz' || import.meta.env.VUE_APP_REMOTE_MODE) {
if (
document.location.hostname === 'my.mainsail.xyz' ||
String(import.meta.env.VUE_APP_REMOTE_MODE).toLowerCase() === 'true' ||
String(import.meta.env.VUE_APP_REMOTE_MODE) === '1'
) {
remoteMode = true
hostname = ''
port = 7125
Expand Down

0 comments on commit d3172fa

Please sign in to comment.