mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Fixes "TypeError: invalid 'in' operand args"
This commit is contained in:
parent
68c298a409
commit
ec8fdb60fc
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ var PDFView = {
|
|||
window.addEventListener('message', function window_message(e) {
|
||||
var args = e.data;
|
||||
|
||||
if (!('pdfjsLoadAction' in args))
|
||||
if (typeof args !== 'object' || !('pdfjsLoadAction' in args))
|
||||
return;
|
||||
switch (args.pdfjsLoadAction) {
|
||||
case 'progress':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue