From b7e39b59fd0fc7b5610ebff29035bf622079e0d8 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 5 Oct 2022 20:45:21 +0800 Subject: refactor: Change file structure --- apps/kit/src/actions/pwKey.ts | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 apps/kit/src/actions/pwKey.ts (limited to 'apps/kit/src/actions') diff --git a/apps/kit/src/actions/pwKey.ts b/apps/kit/src/actions/pwKey.ts deleted file mode 100644 index a2f22e7..0000000 --- a/apps/kit/src/actions/pwKey.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { is_development, is_testing } from "$lib/configuration"; - -export default function pwKey(node: HTMLElement, value: string | undefined) { - if (!value) return; - if (!is_testing()) { - if (is_development()) console.warn("VITE_TESTING is false, so not setting pw-key attributes"); - return; - } - node.setAttribute("pw-key", value); -} \ No newline at end of file -- cgit v1.3