diff options
| author | Adam Soltys <[email protected]> | 2025-07-14 21:16:17 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-07-14 21:16:17 -0700 |
| commit | 3e4ee5782a530b1e3bfa8358d6fcd2a5feeac99b (patch) | |
| tree | eac3edf7d14bb1715262222c1b1235aac8a1118d /src/lib/index.ts | |
| parent | f8c0b581084a7d7dd1a3664331cccf797c922661 (diff) | |
| download | coinosv3-3e4ee5782a530b1e3bfa8358d6fcd2a5feeac99b.tar.gz coinosv3-3e4ee5782a530b1e3bfa8358d6fcd2a5feeac99b.zip | |
creation
Diffstat (limited to 'src/lib/index.ts')
| -rw-r--r-- | src/lib/index.ts | 8 |
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(); |
