mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 09:09:30 -07:00
additional eslint rules
This commit is contained in:
@@ -18,7 +18,7 @@ class Progress extends WeatherDisplay {
|
||||
|
||||
// setup event listener for dom-required initialization
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
this.version = document.getElementById('version').innerHTML;
|
||||
this.version = document.querySelector('#version').innerHTML;
|
||||
this.elem.querySelector('.container').addEventListener('click', this.lineClick.bind(this));
|
||||
});
|
||||
|
||||
@@ -36,9 +36,9 @@ class Progress extends WeatherDisplay {
|
||||
if (!displays) return;
|
||||
const lines = displays.map((display, index) => {
|
||||
if (display.showOnProgress === false) return false;
|
||||
const fill = {};
|
||||
|
||||
fill.name = display.name;
|
||||
const fill = {
|
||||
name: display.name,
|
||||
};
|
||||
|
||||
const statusClass = calcStatusClass(display.status);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user