aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
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
commit511faad56fa6c6a0f179ed6806119542df317c58 (patch)
treed40e6e94f1c0bfc7afc4befd63fbf26b9a81242b /src/lib/utils.js
parent02ce8cd47c1cdf8a6f978b68c2251f141b128581 (diff)
downloadcoinos-ui-511faad56fa6c6a0f179ed6806119542df317c58.tar.gz
coinos-ui-511faad56fa6c6a0f179ed6806119542df317c58.zip
format
Diffstat (limited to 'src/lib/utils.js')
-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);