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.
This commit is contained in:
Jonas Jenwald 2022-02-14 12:13:30 +01:00
parent 2dececf445
commit 996396a914

View File

@ -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() {