From bcb77d979d817e1e609adb4d007bbbcc3f61efbd Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Thu, 30 Dec 2021 09:51:00 +0100 Subject: Prepare for github --- src/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/utils.ts (limited to 'src/utils.ts') 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 @@ +export function getHost() { + // @ts-ignore + return import.meta.env.DEV ? 'localhost:4040' : window.location.host +} -- cgit v1.2.3