diff options
Diffstat (limited to 'code/frontend/src/actions/pwKey.ts')
| -rw-r--r-- | code/frontend/src/actions/pwKey.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
