Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
this._config = paella.player.config.plugins.list['es.upv.paella.opencast.loader'] || {};
this._orderTracks = this._config.orderTracks || ["presenter/delivery", "presenter/preview", "presentation/delivery", "presentation/preview"];
}
matchTrackFilter(flavor, subFlavor) {
var filters = paella.player.config.plugins.list['es.upv.paella.opencast.loader'].flavors || [['*']];
for (const filter of filters) {
filter.push('*');
if ((filter[0] == '*' || filter[0] == flavor) && (filter[1] == '*' || filter[1] == subFlavor)) {
return true;
}
}
return false;
}