aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-07 22:33:06 -0800
committerAdam Soltys <[email protected]>2023-02-07 22:33:06 -0800
commitf4a66ec14e12b357227ebd06f7ce698bf50a08f1 (patch)
tree4a2eaa1fd72166eb8e35d7df7196dc641decc3d9 /src/lib/utils.js
parent980dc1f0c0537d822d7fa8858844da3ad05bda4c (diff)
downloadcoinos-ui-f4a66ec14e12b357227ebd06f7ce698bf50a08f1.tar.gz
coinos-ui-f4a66ec14e12b357227ebd06f7ce698bf50a08f1.zip
restoring requests
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js4
1 files changed, 2 insertions, 2 deletions
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) => {