mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 00:59:29 -07:00
webpack
This commit is contained in:
@@ -16,10 +16,11 @@ class Progress extends WeatherDisplay {
|
||||
// disable any navigation timing
|
||||
this.timing = false;
|
||||
|
||||
this.version = document.getElementById('version').innerHTML;
|
||||
|
||||
// setup event listener
|
||||
this.elem.querySelector('.container').addEventListener('click', this.lineClick.bind(this));
|
||||
// setup event listener for dom-required initialization
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
this.version = document.getElementById('version').innerHTML;
|
||||
this.elem.querySelector('.container').addEventListener('click', this.lineClick.bind(this));
|
||||
});
|
||||
|
||||
this.okToDrawCurrentConditions = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user