From aaa704f6cd760268ba5221c812b4f5a4df32bac3 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Wed, 27 Jul 2022 00:06:41 -0600 Subject: format --- src/lib/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/utils.js') 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); -- cgit v1.2.3