mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Only update the Document Properties if the dialog is still visible when the dataAvailablePromise is resolved
This commit is contained in:
parent
c7a0b68d9a
commit
edfc78dfe7
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ var DocumentProperties = {
|
|||
},
|
||||
|
||||
getProperties: function documentPropertiesGetProperties() {
|
||||
if (!this.visible) {
|
||||
// If the dialog was closed before dataAvailablePromise was resolved,
|
||||
// don't bother updating the properties.
|
||||
return;
|
||||
}
|
||||
// Get the file name.
|
||||
this.fileName = getPDFFileNameFromURL(PDFView.url);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue