1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #16844 from Snuffleupagus/StampEditor-isEmpty

Update the `StampEditor.isEmpty` method to handle File (PR 16828 follow-up)
This commit is contained in:
Jonas Jenwald 2023-08-18 20:40:09 +02:00 committed by GitHub
commit 60581c427e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,10 +221,11 @@ class StampEditor extends AnnotationEditor {
/** @inheritdoc */
isEmpty() {
return (
this.#bitmapPromise === null &&
this.#bitmap === null &&
this.#bitmapUrl === null
return !(
this.#bitmapPromise ||
this.#bitmap ||
this.#bitmapUrl ||
this.#bitmapFile
);
}