mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Better undefined check
This commit is contained in:
parent
4377eed920
commit
3a80ccad4e
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
pdf.js
|
@ -2995,7 +2995,7 @@ var Page = (function() {
|
|||
inheritPageProp: function(key) {
|
||||
var dict = this.pageDict;
|
||||
var obj = dict.get(key);
|
||||
while (typeof obj == 'undefined') {
|
||||
while (obj === undefined) {
|
||||
dict = this.xref.fetchIfRef(dict.get('Parent'));
|
||||
if (!dict)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue