Skip to content

Commit 5c1f5cc

Browse files
authored
Merge pull request #41 from athombv/master
master → production
2 parents f186aa7 + c9929d5 commit 5c1f5cc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎app/js/homey.ink.app.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ window.addEventListener('load', function () {
115115
}
116116

117117
function renderWeather(weather) {
118-
$weatherTemperature.innerHTML = Math.round(weather.temperature);
119-
$weatherState.innerHTML = weather.state;
118+
$weatherTemperature.innerText = Math.round(weather.temperature);
119+
$weatherState.innerText = weather.state;
120120
}
121121

122122
function renderFlows(flows) {
@@ -146,7 +146,7 @@ window.addEventListener('load', function () {
146146

147147
var $name = document.createElement('div');
148148
$name.classList.add('name');
149-
$name.innerHTML = flow.name;
149+
$name.innerText = flow.name;
150150
$flow.appendChild($name);
151151
});
152152
}
@@ -178,7 +178,7 @@ window.addEventListener('load', function () {
178178

179179
var $name = document.createElement('div');
180180
$name.classList.add('name');
181-
$name.innerHTML = device.name;
181+
$name.innerText = device.name;
182182
$device.appendChild($name);
183183
});
184184
}
@@ -198,8 +198,8 @@ window.addEventListener('load', function () {
198198
tod = 'night';
199199
}
200200

201-
$textLarge.innerHTML = 'Good ' + tod + '!';
202-
$textSmall.innerHTML = 'Today is ' + moment(now).format('dddd[, the ]Do[ of ]MMMM YYYY[.]');
201+
$textLarge.innerText = 'Good ' + tod + '!';
202+
$textSmall.innerText = 'Today is ' + moment(now).format('dddd[, the ]Do[ of ]MMMM YYYY[.]');
203203
}
204204
} catch (err) {
205205
document.write('<pre>Error: ' + err.message + '\n' + err.stack);

0 commit comments

Comments
 (0)