Merge pull request #863 from friday/data-plyr-config-no-options

Fix loading data-plyr-config when initiating Plyr without any options
This commit is contained in:
Sam Potts 2018-04-04 11:33:30 +10:00 committed by GitHub
commit 1e47019122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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'));