Fix loading data-plyr-config when initiating Plyr without any options
This commit is contained in:
parent
cdf14932ec
commit
536c65e82c
@ -57,7 +57,7 @@ class Plyr {
|
|||||||
this.config = utils.extend(
|
this.config = utils.extend(
|
||||||
{},
|
{},
|
||||||
defaults,
|
defaults,
|
||||||
options,
|
options || {},
|
||||||
(() => {
|
(() => {
|
||||||
try {
|
try {
|
||||||
return JSON.parse(this.media.getAttribute('data-plyr-config'));
|
return JSON.parse(this.media.getAttribute('data-plyr-config'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user