diff options
Diffstat (limited to 'dist/plyr.js')
-rw-r--r-- | dist/plyr.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/dist/plyr.js b/dist/plyr.js index 42f35266..be055bfe 100644 --- a/dist/plyr.js +++ b/dist/plyr.js @@ -6302,6 +6302,12 @@ var source = { // License: The MIT License (MIT) // ========================================================================== +// Private properties +// TODO: Use a WeakMap for private globals +// const globals = new WeakMap(); + +// Plyr instance + var Plyr = function () { function Plyr(target, options) { var _this = this; @@ -7098,8 +7104,8 @@ var Plyr = function () { targetTime = this.duration; } - // Set - this.media.currentTime = targetTime.toFixed(4); + // Set with slightly reduced accuracy + this.media.currentTime = parseFloat(targetTime.toFixed(4)); // Logging this.debug.log('Seeking to ' + this.currentTime + ' seconds'); |