blob: a2f22e785a66e18fd845938ad977e5367a6d87ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
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);
}
|