aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-01-13 15:49:29 +0000
committerSam Potts <sam@potts.es>2020-01-13 15:49:29 +0000
commit4f263ebb1a3406dc2294f99cbc8a047b286dd829 (patch)
tree77cd397716956746cee5aad8f1b8c470ffaca180 /src
parentaa51719a5534eced78e9f0f9f90bc5926673e0b5 (diff)
downloadplyr-4f263ebb1a3406dc2294f99cbc8a047b286dd829.tar.lz
plyr-4f263ebb1a3406dc2294f99cbc8a047b286dd829.tar.xz
plyr-4f263ebb1a3406dc2294f99cbc8a047b286dd829.zip
Added local server, package upgrades
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index f30d334a..ca81004a 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -441,7 +441,7 @@ class Plyr {
* @param {Number} seekTime - how far to rewind in seconds. Defaults to the config.seekTime
*/
rewind(seekTime) {
- this.currentTime = this.currentTime - (is.number(seekTime) ? seekTime : this.config.seekTime);
+ this.currentTime -= is.number(seekTime) ? seekTime : this.config.seekTime;
}
/**
@@ -449,7 +449,7 @@ class Plyr {
* @param {Number} seekTime - how far to fast forward in seconds. Defaults to the config.seekTime
*/
forward(seekTime) {
- this.currentTime = this.currentTime + (is.number(seekTime) ? seekTime : this.config.seekTime);
+ this.currentTime += is.number(seekTime) ? seekTime : this.config.seekTime;
}
/**