From 996396a9144ac9deb3d7bcdc82ba4363a31e2c25 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 14 Feb 2022 12:13:30 +0100 Subject: [PATCH] Change `PasswordPrompt.close` to an `async` method This is consistent with the `open` method, and it actually *ever so slightly* reduces the size of the file. --- web/password_prompt.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/password_prompt.js b/web/password_prompt.js index 442cdb809..6631783c7 100644 --- a/web/password_prompt.js +++ b/web/password_prompt.js @@ -81,10 +81,9 @@ class PasswordPrompt { ); } - close() { - this.overlayManager.close(this.overlayName).then(() => { - this.input.value = ""; - }); + async close() { + await this.overlayManager.close(this.overlayName); + this.input.value = ""; } #verify() {