FIX - object values for the providers must be used (#2053)

To make use of the provider configuration, the objects values must be used.
This commit is contained in:
syteknet-core 2020-12-22 23:30:23 +01:00 committed by GitHub
parent 32a4039f7c
commit f00e81a976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ class Plyr {
} }
// Unsupported or missing provider // Unsupported or missing provider
if (is.empty(this.provider) || !Object.keys(providers).includes(this.provider)) { if (is.empty(this.provider) || !Object.values(providers).includes(this.provider)) {
this.debug.error('Setup failed: Invalid provider'); this.debug.error('Setup failed: Invalid provider');
return; return;
} }