aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-03-22 00:28:42 +1100
committerSam Potts <sam@potts.es>2018-03-22 00:28:42 +1100
commit05b8e8a6e0ed260801a4fe21f10656e86a47f8fd (patch)
treea7e71df51ef194cd1f51f45ee5023d93b13c5ec0 /src
parentf998b996faf2763b31cd093a42835bae142e9671 (diff)
downloadplyr-05b8e8a6e0ed260801a4fe21f10656e86a47f8fd.tar.lz
plyr-05b8e8a6e0ed260801a4fe21f10656e86a47f8fd.tar.xz
plyr-05b8e8a6e0ed260801a4fe21f10656e86a47f8fd.zip
Restore as float (fixes #828)
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index bd4ec020..3de42f9c 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -425,7 +425,7 @@ class Plyr {
}
// Set
- this.media.currentTime = targetTime.toFixed(4);
+ this.media.currentTime = parseFloat(targetTime.toFixed(4));
// Logging
this.debug.log(`Seeking to ${this.currentTime} seconds`);