From d1e5054f1bce8ba7d4eb713521d4fec51201686b Mon Sep 17 00:00:00 2001 From: Sebastian Hodapp Date: Sun, 23 Jul 2017 16:55:27 +0200 Subject: [PATCH] Add files via upload Syntax error fixed --- MMM-IndoorTemp.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/MMM-IndoorTemp.js b/MMM-IndoorTemp.js index 4bb8de5..0a19eae 100644 --- a/MMM-IndoorTemp.js +++ b/MMM-IndoorTemp.js @@ -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); @@ -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); } }