aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-30 15:52:10 -0700
committerAdam Soltys <[email protected]>2022-09-30 15:52:27 -0700
commit96c0813ed426126425413f4c12fe7edeef90f2fe (patch)
treeca8b4e6a04b4b977379f3b147c2eccc23de04fb6 /src/lib/utils.js
parent0cbdac628012c80c1c61e796bf1e2750be9afe58 (diff)
downloadcoinos-ui-96c0813ed426126425413f4c12fe7edeef90f2fe.tar.gz
coinos-ui-96c0813ed426126425413f4c12fe7edeef90f2fe.zip
sent payment confirmation
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 514e3adb..f2c7a6a4 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -2,12 +2,13 @@ import cookie from 'cookie';
import { browser } from '$app/environment';
import { toast } from '@zerodevx/svelte-toast';
import { goto } from '$app/navigation';
+import { env } from '$env/dynamic/public';
export function scroll(section) {
section.scrollIntoView({ behavior: 'smooth' });
}
-const base = browser ? '' : import.meta.env.VITE_COINOS_URL;
+const base = browser ? '' : env.PUBLIC_COINOS_URL;
export const get = (url, headers = {}) =>
fetch(base + url, { headers })