From f4a66ec14e12b357227ebd06f7ce698bf50a08f1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 7 Feb 2023 22:33:06 -0800 Subject: restoring requests --- src/lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/utils.js') diff --git a/src/lib/utils.js b/src/lib/utils.js index 3a644e1f..24991100 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -82,7 +82,7 @@ export function reverseFormat(val, locale) { return Number.isNaN(reversedVal) ? 0 : +reversedVal; } -export let protectedRoutes = [/customers/, /dashboard/, /settings/, /payments/, /request/]; +export let protectedRoutes = [/customers/, /dashboard/, /settings/, /payments/]; export const success = (m) => { toast.pop(); @@ -171,7 +171,7 @@ export const sat = (s) => { export const sats = 100000000; export const back = () => browser && history.go(-1); -export const focus = (el) => setTimeout(() => el.focus(), 1); +export const focus = (el) => browser && screen.width > 1280 && setTimeout(() => el.focus(), 1); export const sleep = (n) => new Promise((r) => setTimeout(r, n)); export const wait = async (f, n = 100, s = 300) => { -- cgit v1.2.3