aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/html5.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-06-27 21:59:35 +1000
committerSam Potts <sam@potts.es>2020-10-19 22:27:16 +1100
commit9a69ae25993f8e2e6b30c2435aba98f779e129ad (patch)
tree5cb38a0518e9859f8eeb4c31c40d4c0f8e885af8 /src/js/html5.js
parent02321c35bc51e64a1f62611c73b8533ef7c3d7eb (diff)
downloadplyr-9a69ae25993f8e2e6b30c2435aba98f779e129ad.tar.lz
plyr-9a69ae25993f8e2e6b30c2435aba98f779e129ad.tar.xz
plyr-9a69ae25993f8e2e6b30c2435aba98f779e129ad.zip
Linting changes
Diffstat (limited to 'src/js/html5.js')
-rw-r--r--src/js/html5.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js/html5.js b/src/js/html5.js
index 658abf15..0cb5b27a 100644
--- a/src/js/html5.js
+++ b/src/js/html5.js
@@ -18,7 +18,7 @@ const html5 = {
const sources = Array.from(this.media.querySelectorAll('source'));
// Filter out unsupported sources (if type is specified)
- return sources.filter(source => {
+ return sources.filter((source) => {
const type = source.getAttribute('type');
if (is.empty(type)) {
@@ -39,7 +39,7 @@ const html5 = {
// Get sizes from <source> elements
return html5.getSources
.call(this)
- .map(source => Number(source.getAttribute('size')))
+ .map((source) => Number(source.getAttribute('size')))
.filter(Boolean);
},
@@ -63,7 +63,7 @@ const html5 = {
get() {
// Get sources
const sources = html5.getSources.call(player);
- const source = sources.find(s => s.getAttribute('src') === player.source);
+ const source = sources.find((s) => s.getAttribute('src') === player.source);
// Return size, if match is found
return source && Number(source.getAttribute('size'));
@@ -80,7 +80,7 @@ const html5 = {
// Get sources
const sources = html5.getSources.call(player);
// Get first match for requested size
- const source = sources.find(s => Number(s.getAttribute('size')) === input);
+ const source = sources.find((s) => Number(s.getAttribute('size')) === input);
// No matching source found
if (!source) {