From 3e4ee5782a530b1e3bfa8358d6fcd2a5feeac99b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 14 Jul 2025 21:16:17 -0700 Subject: creation --- src/lib/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib/index.ts') 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(); -- cgit v1.2.3