Skip to content

Commit

Permalink
Fix: Avoid use of Number.isFinite() (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Press authored Mar 8, 2018
1 parent 14de771 commit 0f31aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/viewers/media/MediaBaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ class MediaBaseViewer extends BaseViewer {
* @return {boolean} - true if time is valid
*/
isValidTime(time) {
return typeof time === 'number' && Number.isFinite(time) && time >= 0 && time <= this.mediaEl.duration;
return typeof time === 'number' && time >= 0 && time <= this.mediaEl.duration;
}

/**
Expand Down

0 comments on commit 0f31aee

Please sign in to comment.