aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/index.ts')
-rw-r--r--src/lib/index.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/index.ts b/src/lib/index.ts
index 856f2b6..02f71ba 100644
--- a/src/lib/index.ts
+++ b/src/lib/index.ts
@@ -1 +1,7 @@
-// place files you want to import through the `$lib` alias in this folder.
+import { writable } from 'svelte/store';
+import { browser } from "$app/environment";
+
+export const focus = (el: HTMLElement) =>
+ browser && screen.width > 1280 && setTimeout(() => el.focus(), 1);
+
+export const mnemonic = writable();