diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-06-15 17:40:18 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-06-15 17:40:18 -0500 |
commit | 77b938845aa909a70f896b759b04ba7c1b1d9aa6 (patch) | |
tree | 0d5f65c3efa2c7702f4c5eee024248b73ec36f07 /src/env.ts | |
parent | b2dd8d4f440243ac2eb12e7013d5a024b4e95f07 (diff) | |
download | voidsky-77b938845aa909a70f896b759b04ba7c1b1d9aa6.tar.zst |
Polyfills for native crypto
Diffstat (limited to 'src/env.ts')
-rw-r--r-- | src/env.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/env.ts b/src/env.ts index 78fb88acc..47bceac77 100644 --- a/src/env.ts +++ b/src/env.ts @@ -1,5 +1,7 @@ -if (typeof process.env.REACT_APP_AUTH_LOBBY !== 'string') { +import {REACT_APP_AUTH_LOBBY} from '@env' + +if (typeof REACT_APP_AUTH_LOBBY !== 'string') { throw new Error('ENV: No auth lobby provided') } -export const AUTH_LOBBY = process.env.REACT_APP_AUTH_LOBBY +export const AUTH_LOBBY = REACT_APP_AUTH_LOBBY |