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 #13972 from Snuffleupagus/issue-13971

Treat all content as visible when no optional content groups are defined (issue 13971)
This commit is contained in:
Tim van der Meij 2021-09-04 15:53:44 +02:00 committed by GitHub
commit 1b20f61b56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View file

@ -95,6 +95,9 @@ class OptionalContentConfig {
}
isVisible(group) {
if (this._groups.size === 0) {
return true;
}
if (!group) {
warn("Optional content group not defined.");
return true;