aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
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;