Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Syntax error fixed
  • Loading branch information
sebastianhodapp committed Jul 23, 2017
1 parent ecc59d6 commit d1e5054
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions MMM-IndoorTemp.js
Expand Up @@ -39,12 +39,13 @@ Module.register('MMM-IndoorTemp', {
getDom: function() {
var wrapper = document.createElement('div');

if (!this.loaded) {
wrapper.innerHTML = this.config.loadingText;
return wrapper;
}

if (this.config.debug) {

if (!this.loaded) {
wrapper.innerHTML = this.config.loadingText;
return wrapper;
}

var titleDiv = document.createElement('div');
titleDiv.innerHTML = this.config.title;
wrapper.appendChild(titleDiv);
Expand All @@ -68,7 +69,7 @@ Module.register('MMM-IndoorTemp', {
}
}

if (notification === 'ERROR') && (this.config.showAlerts){
if (notification === 'ERROR' && this.config.showAlerts){
this.sendNotification('SHOW_ALERT', payload);
}
}
Expand Down

0 comments on commit d1e5054

Please sign in to comment.