mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #16984 from Snuffleupagus/altText-close
Don't try to close the `altText` dialog if it's not open (PR 16977 follow-up)
This commit is contained in:
commit
b80e0d881d
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class AltTextManager {
|
|||
}
|
||||
|
||||
#finish() {
|
||||
if (this.#dialog) {
|
||||
if (this.#overlayManager.active === this.#dialog) {
|
||||
this.#overlayManager.close(this.#dialog);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue