Fix loading data-plyr-config when initiating Plyr without any options

This commit is contained in:
Albin Larsson 2018-04-04 03:16:25 +02:00
parent cdf14932ec
commit 536c65e82c

View File

@ -57,7 +57,7 @@ class Plyr {
this.config = utils.extend(
{},
defaults,
options,
options || {},
(() => {
try {
return JSON.parse(this.media.getAttribute('data-plyr-config'));