summaryrefslogtreecommitdiffstats
path: root/src/utils.ts
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2021-12-30 09:51:00 +0100
committerGravatar Tom van der Lee <tom@vanderlee.io>2022-01-11 00:00:22 +0100
commitbcb77d979d817e1e609adb4d007bbbcc3f61efbd (patch)
tree093c5a2914ee0f6e1ec559b3b98725190fee7285 /src/utils.ts
downloadclient-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.ts4
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 @@
1export function getHost() {
2 // @ts-ignore
3 return import.meta.env.DEV ? 'localhost:4040' : window.location.host
4}