aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-07-30 22:54:03 +1000
committerGitHub <noreply@github.com>2018-07-30 22:54:03 +1000
commitefb7401e6d754034a0d8ffe13156a8bab4e0d060 (patch)
treed0bc86a50e00ee8302becea84829edecdedb61f5 /src/js/plyr.js
parent0933b48c2a1990a19ac7f0b15ba639b30fb3d8db (diff)
parent60a0f0c9799cfa5c9f207971168b07f23f7ee41c (diff)
downloadplyr-efb7401e6d754034a0d8ffe13156a8bab4e0d060.tar.lz
plyr-efb7401e6d754034a0d8ffe13156a8bab4e0d060.tar.xz
plyr-efb7401e6d754034a0d8ffe13156a8bab4e0d060.zip
Merge pull request #1136 from sampotts/develop
v3.3.23
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 0f27b750..6d321112 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -171,7 +171,7 @@ class Plyr {
this.elements.container.className = '';
// Get attributes from URL and set config
- if (url.searchParams.length) {
+ if (url.search.length) {
const truthy = ['1', 'true'];
if (truthy.includes(url.searchParams.get('autoplay'))) {
@@ -185,6 +185,7 @@ class Plyr {
// YouTube requires the playsinline in the URL
if (this.isYouTube) {
this.config.playsinline = truthy.includes(url.searchParams.get('playsinline'));
+ this.config.hl = url.searchParams.get('hl');
} else {
this.config.playsinline = true;
}