From ced66c5807575cd29f6aa5632e8ad02b38c8448a Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 28 Apr 2024 22:37:30 +0200 Subject: WIP new frontend --- code/frontend/src/actions/pwKey.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 code/frontend/src/actions/pwKey.ts (limited to 'code/frontend/src/actions') diff --git a/code/frontend/src/actions/pwKey.ts b/code/frontend/src/actions/pwKey.ts new file mode 100644 index 0000000..e8f615c --- /dev/null +++ b/code/frontend/src/actions/pwKey.ts @@ -0,0 +1,4 @@ +export default function pwKey(node: HTMLElement, value: string | undefined) { + if (!value) return; + node.setAttribute("pw-key", value); +} \ No newline at end of file -- cgit v1.3