Skip to content

Commit

Permalink
fix: sources.type protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ziv committed Jun 5, 2018
1 parent 3de325b commit faf5875
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/kava.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,10 @@ export default class Kava extends BasePlugin {
return "dvr";
}
}
return this.player.config.sources.type.toLowerCase();
if (this.player.config.sources.type) {
return this.player.config.sources.type.toString().toLowerCase();
}
return '';
}

_validate(): boolean {
Expand Down

0 comments on commit faf5875

Please sign in to comment.