aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-02-23 12:19:53 -0800
committerAdam Soltys <[email protected]>2024-02-23 12:19:53 -0800
commit4585996d3fcace056993d3f0c6959cd7f31e4438 (patch)
tree5f35d3a82df97bbe3744d8346e41ae567cf0c754 /src/lib/utils.js
parent3ab1bc1fcc96f78bcc3fb7bc6ff9f84fc75c7c41 (diff)
downloadcoinos-ui-4585996d3fcace056993d3f0c6959cd7f31e4438.tar.gz
coinos-ui-4585996d3fcace056993d3f0c6959cd7f31e4438.zip
payment memos
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 8e3ff004..0b76365c 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -227,6 +227,9 @@ export let back = () =>
export let focus = (el) =>
browser && screen.width > 1280 && setTimeout(() => el.focus(), 1);
+export let select = (el) =>
+ browser && screen.width > 1280 && setTimeout(() => el.select(), 1);
+
export let sleep = (n) => new Promise((r) => setTimeout(r, n));
export let wait = async (f, n = 100, s = 300) => {
let i = 0;