aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-15 15:34:29 +1000
committerGitHub <noreply@github.com>2018-06-15 15:34:29 +1000
commitd522e405942e060180c7f5b28c914028e94a917b (patch)
tree71986987e1c10eca00d6796551b2f065f9d07d03 /src/js/plyr.js
parent3cd2b9a6c3ab2a7b530f1f0e6eae884ba41b9211 (diff)
parent6bff6b317d6adcd9f94c8d4d8ee225d39f784e0f (diff)
downloadplyr-d522e405942e060180c7f5b28c914028e94a917b.tar.lz
plyr-d522e405942e060180c7f5b28c914028e94a917b.tar.xz
plyr-d522e405942e060180c7f5b28c914028e94a917b.zip
Merge pull request #1034 from friday/remove-array-newline-rule
Suggestion: Remove array newline rule
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 80555829..753db775 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -172,10 +172,7 @@ class Plyr {
// Get attributes from URL and set config
if (url.searchParams.length) {
- const truthy = [
- '1',
- 'true',
- ];
+ const truthy = ['1', 'true'];
if (truthy.includes(url.searchParams.get('autoplay'))) {
this.config.autoplay = true;
@@ -682,12 +679,7 @@ class Plyr {
return;
}
- let quality = ([
- !is.empty(input) && Number(input),
- this.storage.get('quality'),
- config.selected,
- config.default,
- ]).find(is.number);
+ let quality = [!is.empty(input) && Number(input), this.storage.get('quality'), config.selected, config.default].find(is.number);
if (!options.includes(quality)) {
const value = closest(options, quality);