diff --git a/src/pages/PwGen.js b/src/pages/PwGen.js index 248bd71..ae9e0bd 100644 --- a/src/pages/PwGen.js +++ b/src/pages/PwGen.js @@ -62,6 +62,7 @@ export class PwGenPage extends Page { async render() { + setPageContent(""); this.passwordBox = CopyableInputBox(genPassword(passwordOptionsDefault)); this.passwordLengthTitle = makeElement({ @@ -132,6 +133,14 @@ export class PwGenPage extends Page { })); } + cleanup() { + this.passwordBox = undefined; + this.passwordLengthTitle = undefined; + this.passwordLengthRange = undefined; + this.passwordAlphabet = undefined; + this.passwordForm = undefined; + } + get name() { return i18next.t("password_generator_title"); }