aboutsummaryrefslogtreecommitdiffstats
path: root/code/app/src/actions/pwKey.ts
blob: cf85685251c4f28a909d1787cefd2dbe7e6e8da3 (plain) (blame)
1
2
3
4
5
6
7
import { is_testing } from "$configuration";

export default function pwKey(node: HTMLElement, value: string | undefined) {
    if (!value) return;
    if (!is_testing()) return;
    node.setAttribute("pw-key", value);
}