diff options
author | Sam Potts <sam@potts.es> | 2020-01-13 15:49:29 +0000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-01-13 15:49:29 +0000 |
commit | 4f263ebb1a3406dc2294f99cbc8a047b286dd829 (patch) | |
tree | 77cd397716956746cee5aad8f1b8c470ffaca180 /src | |
parent | aa51719a5534eced78e9f0f9f90bc5926673e0b5 (diff) | |
download | plyr-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.js | 4 |
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; } /** |