From 44cefde7b62fa60be926aedab1a3b7912c7ac54f Mon Sep 17 00:00:00 2001 From: Kitteh Date: Fri, 7 May 2021 15:58:45 +0100 Subject: [PATCH] Make refresh on Password Generator screen work. --- src/pages/PwGen.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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"); }