Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pastleo committed Jan 28, 2025
1 parent b97f6c9 commit fbf4b1f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
container,
touchmoveTwoFingers: false,
mousewheelCtrlKey: false,
navbar: navbar,
navbar,
minFov: 10,
maxFov: 120,
fisheye: false,
Expand All @@ -74,7 +74,9 @@
// zoomLevel range: [0, 100]
if (Math.round(zoomLevel) >= 75) {
// Replace the preview with the original
resolutionPlugin.setResolution('original');
resolutionPlugin.setResolution('original').catch(() => {
resolutionPlugin.setResolution('default');
});
viewer.removeEventListener(events.ZoomUpdatedEvent.type, zoomHandler);
}
};
Expand Down

0 comments on commit fbf4b1f

Please sign in to comment.