mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
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:
parent
2dececf445
commit
996396a914
1 changed files with 3 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue