aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/index.ts
blob: c05c77e65bc4cac8e67e421b5fafaf6743d851cb (plain) (blame)
1
2
3
4
5
6
7
8
9
import { browser } from "$app/environment";
import { writable } from "svelte/store";

export const focus = (el: HTMLElement) =>
	browser && screen.width > 1280 && setTimeout(() => el.focus(), 1);

export const mnemonic = writable();
export const password = writable();
export const address = writable();