Skip to content

Commit

Permalink
Merge pull request #16 from fewieden/develop
Browse files Browse the repository at this point in the history
mode fallback, to prevent undefined
  • Loading branch information
fewieden committed Mar 10, 2018
2 parents 42eba7b + b359951 commit 2c043ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMM-NFL.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Module.register('MMM-NFL', {
const wrapper = document.createElement('div');
const scores = document.createElement('div');
const header = document.createElement('header');
header.innerHTML = `NFL ${this.modes[this.details.t]} ${this.details.y}`;
header.innerHTML = `NFL ${this.modes[this.details.t] || this.details.t} ${this.details.y}`;
scores.appendChild(header);

if (!this.scores) {
Expand Down

0 comments on commit 2c043ab

Please sign in to comment.