aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-07-27 00:06:41 -0600
committersecondl1ght <[email protected]>2022-07-27 00:06:41 -0600
commitaaa704f6cd760268ba5221c812b4f5a4df32bac3 (patch)
tree31118f4faf08fca9b600264d2cc6b0c3ceab82ad /src/lib
parent1387dc5e4e69682749446f2e9b8717f96947328c (diff)
downloadcoinos-ui-aaa704f6cd760268ba5221c812b4f5a4df32bac3.tar.gz
coinos-ui-aaa704f6cd760268ba5221c812b4f5a4df32bac3.zip
format
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/utils.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index b1bc24ec..5b1bba7f 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -1,14 +1,14 @@
-import { browser } from "$app/env";
+import { browser } from '$app/env';
export function scroll(section) {
section.scrollIntoView({ behavior: 'smooth' });
}
-const base = browser ? "" : import.meta.env.VITE_COINOS_URL;
+const base = browser ? '' : import.meta.env.VITE_COINOS_URL;
export const post = (url, body) =>
fetch(base + url, {
method: 'POST',
body: JSON.stringify(body),
- headers: { 'accept': 'application/json', 'content-type': 'application/json' }
- }).then(r => r.json);
+ headers: { accept: 'application/json', 'content-type': 'application/json' }
+ }).then((r) => r.json);