aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-10-19 22:43:53 +1100
committerSam Potts <sam@potts.es>2020-10-19 22:43:53 +1100
commitfa6282d0e2f266ee0f2f792d373f21d14cab283f (patch)
tree1f753bb48dfc0795d1ecfe5203d5d4e07a01666f /src/js
parent80bdf04fdeb557caa84997f8a3266ca829efa032 (diff)
downloadplyr-fa6282d0e2f266ee0f2f792d373f21d14cab283f.tar.lz
plyr-fa6282d0e2f266ee0f2f792d373f21d14cab283f.tar.xz
plyr-fa6282d0e2f266ee0f2f792d373f21d14cab283f.zip
chore: formatting
Diffstat (limited to 'src/js')
-rw-r--r--src/js/listeners.js30
1 files changed, 20 insertions, 10 deletions
diff --git a/src/js/listeners.js b/src/js/listeners.js
index ca021b97..e8232735 100644
--- a/src/js/listeners.js
+++ b/src/js/listeners.js
@@ -569,18 +569,28 @@ class Listeners {
this.bind(elements.buttons.restart, 'click', player.restart, 'restart');
// Rewind
- this.bind(elements.buttons.rewind, 'click', () => {
- // Record seek time so we can prevent hiding controls for a few seconds after rewind
- player.lastSeekTime = Date.now();
- player.rewind();
- }, 'rewind');
+ this.bind(
+ elements.buttons.rewind,
+ 'click',
+ () => {
+ // Record seek time so we can prevent hiding controls for a few seconds after rewind
+ player.lastSeekTime = Date.now();
+ player.rewind();
+ },
+ 'rewind',
+ );
// Rewind
- this.bind(elements.buttons.fastForward, 'click', () => {
- // Record seek time so we can prevent hiding controls for a few seconds after fast forward
- player.lastSeekTime = Date.now();
- player.forward();
- }, 'fastForward');
+ this.bind(
+ elements.buttons.fastForward,
+ 'click',
+ () => {
+ // Record seek time so we can prevent hiding controls for a few seconds after fast forward
+ player.lastSeekTime = Date.now();
+ player.forward();
+ },
+ 'fastForward',
+ );
// Mute toggle
this.bind(