Skip to content

Commit

Permalink
19217 - Fix for Uncaught (in promise) TypeError: HTMLMediaElement.cur…
Browse files Browse the repository at this point in the history
…rentTime setter: Value being assigned is not a finite floating-point value.
  • Loading branch information
rafeili committed Oct 4, 2024
1 parent ac88ecb commit 40ef7ea
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ export class AVCenterPanel extends CenterPanel<
IIIFEvents.CANVAS_INDEX_CHANGE,
(canvasIndex: number) => {
if (this._lastCanvasIndex !== canvasIndex) {
let range = this.extension.getCurrentCanvasRange()
this.extensionHost.publish(IIIFEvents.RANGE_CHANGE, range);
this._whenMediaReady(() => {
this._viewCanvas(canvasIndex);
});
this._viewCanvas(canvasIndex);
}
}
);
Expand Down

0 comments on commit 40ef7ea

Please sign in to comment.