diff options
| author | 2021-12-30 09:51:00 +0100 | |
|---|---|---|
| committer | 2022-01-11 00:00:22 +0100 | |
| commit | bcb77d979d817e1e609adb4d007bbbcc3f61efbd (patch) | |
| tree | 093c5a2914ee0f6e1ec559b3b98725190fee7285 /src/utils.ts | |
| download | client-1.0.0.tar.gz client-1.0.0.tar.bz2 client-1.0.0.zip | |
Prepare for githubv1.0.0
Diffstat (limited to 'src/utils.ts')
| -rw-r--r-- | src/utils.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.ts b/src/utils.ts new file mode 100644 index 0000000..dcf010a --- /dev/null +++ b/src/utils.ts | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | export function getHost() { | ||
| 2 | // @ts-ignore | ||
| 3 | return import.meta.env.DEV ? 'localhost:4040' : window.location.host | ||
| 4 | } | ||
