Browse Source

Fixes "TypeError: invalid 'in' operand args"

Yury Delendik 13 years ago
parent
commit
ec8fdb60fc
  1. 2
      web/viewer.js

2
web/viewer.js

@ -356,7 +356,7 @@ var PDFView = { @@ -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…
Cancel
Save