diff options
author | Sam Potts <sam@potts.es> | 2020-06-27 21:59:35 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-11-14 13:01:36 +1100 |
commit | c3e163741fd5a4a88e56c9d425109f2014c8511f (patch) | |
tree | c1651e8b90d096a6000595d03d533a6e15ac0a0e /src/js/ui.js | |
parent | 1c715bc88922e20360c7ad2d5b625cccb16247fa (diff) | |
download | plyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.tar.lz plyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.tar.xz plyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.zip |
Linting changes
Diffstat (limited to 'src/js/ui.js')
-rw-r--r-- | src/js/ui.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/ui.js b/src/js/ui.js index d3d6fd69..f5868788 100644 --- a/src/js/ui.js +++ b/src/js/ui.js @@ -135,7 +135,7 @@ const ui = { } // If there's a play button, set label - Array.from(this.elements.buttons.play || []).forEach(button => { + Array.from(this.elements.buttons.play || []).forEach((button) => { button.setAttribute('aria-label', label); }); @@ -178,7 +178,7 @@ const ui = { .call(this) // Load image .then(() => loadImage(poster)) - .catch(err => { + .catch((err) => { // Hide poster on error unless it's been set by another call if (poster === this.poster) { ui.togglePoster.call(this, false); @@ -214,7 +214,7 @@ const ui = { toggleClass(this.elements.container, this.config.classNames.stopped, this.stopped); // Set state - Array.from(this.elements.buttons.play || []).forEach(target => { + Array.from(this.elements.buttons.play || []).forEach((target) => { Object.assign(target, { pressed: this.playing }); target.setAttribute('aria-label', i18n.get(this.playing ? 'pause' : 'play', this.config)); }); @@ -270,8 +270,8 @@ const ui = { // Loop through values (as they are the keys when the object is spread 🤔) Object.values({ ...this.media.style }) // We're only fussed about Plyr specific properties - .filter(key => !is.empty(key) && key.startsWith('--plyr')) - .forEach(key => { + .filter((key) => !is.empty(key) && key.startsWith('--plyr')) + .forEach((key) => { // Set on the container this.elements.container.style.setProperty(key, this.media.style.getPropertyValue(key)); |