a9e667c34c70

pass detectPasswordPolicy to edit-entry smart generator; fixes missing policy and TS error

time
2026-05-15 01:30 UTC · 5 months ago
machine
koh2
parent
eea1f4fc17e4
1 file src/content/inject.ts+1 −1
src/content/inject.ts+1 −1
@@ -2292,7 +2292,7 @@22922292       revealBtn.textContent = reveal ? "hide" : "show";22932293     });22942294     pwRow.append(pwInput, revealBtn);2295-    const editSmartGen = createSmartGenerator({ onChange: (pw) => { pwInput.value = pw; } });2295+    const editSmartGen = createSmartGenerator({ policy: detectPasswordPolicy(), onChange: (pw) => { pwInput.value = pw; } });22962296     editSmartGen.root.style.display = "none";22972297     let editGenVisible = false;22982298     const genToggleBtn = document.createElement("button");

view file