aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/html5.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-06-01 18:45:07 +1000
committerSam Potts <sam@potts.es>2019-06-01 18:45:07 +1000
commitc9055f391b3782d96d16fb6efa4337dc90120635 (patch)
tree6cd7d1fc8627bbe62f4f714a99fe3cd2ec49db09 /src/js/html5.js
parent5ddd9e02def654bb677c988403dbefbc4a32787c (diff)
downloadplyr-c9055f391b3782d96d16fb6efa4337dc90120635.tar.lz
plyr-c9055f391b3782d96d16fb6efa4337dc90120635.tar.xz
plyr-c9055f391b3782d96d16fb6efa4337dc90120635.zip
Linting changes
Diffstat (limited to 'src/js/html5.js')
-rw-r--r--src/js/html5.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/js/html5.js b/src/js/html5.js
index 34f0c391..e538e922 100644
--- a/src/js/html5.js
+++ b/src/js/html5.js
@@ -52,7 +52,7 @@ const html5 = {
get() {
// Get sources
const sources = html5.getSources.call(player);
- const source = sources.find(source => source.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'));
@@ -60,9 +60,8 @@ const html5 = {
set(input) {
// Get sources
const sources = html5.getSources.call(player);
-
// Get first match for requested size
- const source = sources.find(source => Number(source.getAttribute('size')) === input);
+ const source = sources.find(s => Number(s.getAttribute('size')) === input);
// No matching source found
if (!source) {