Skip to content

Commit

Permalink
Fix snapshot breakage on web
Browse files Browse the repository at this point in the history
Don't pass our onSetZoom wrapper when the host didn't implement that
function.
  • Loading branch information
AbeJellinek committed Apr 26, 2024
1 parent 250935a commit 5e13661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,9 +737,9 @@ class Reader {
this._keyboardManager.handleViewKeyUp(event);
};

let onSetZoom = (iframe, zoom) => {
let onSetZoom = this._onSetZoom && ((iframe, zoom) => {
this._onSetZoom(iframe, zoom);
};
});

let data;
if (this._type === 'pdf') {
Expand Down

0 comments on commit 5e13661

Please sign in to comment.