Re-enable auto-refresh
Also change its loglevel
This commit is contained in:
@@ -71,7 +71,7 @@ class trweb {
|
|||||||
this.#container.appendChild(this.#guiFooter);
|
this.#container.appendChild(this.#guiFooter);
|
||||||
|
|
||||||
this.#dom_servermanager.loadServers();
|
this.#dom_servermanager.loadServers();
|
||||||
//this.setTimer();
|
this.setTimer();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.#log(5, `Event type ${e.type} not supported`);
|
this.#log(5, `Event type ${e.type} not supported`);
|
||||||
@@ -80,14 +80,14 @@ class trweb {
|
|||||||
}
|
}
|
||||||
|
|
||||||
refresh() {
|
refresh() {
|
||||||
this.#log(5,'Refresh');
|
this.#log(6,'Refresh');
|
||||||
for (const [key, value] of Object.entries(this.#dom_servermanager.getServers())) {
|
for (const [key, value] of Object.entries(this.#dom_servermanager.getServers())) {
|
||||||
value.refreshTorrentList();
|
value.refreshTorrentList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#timercb = function() {
|
#timercb = function() {
|
||||||
this.#log(5,'Timer tick');
|
this.#log(6,'Timer tick');
|
||||||
this.refresh();
|
this.refresh();
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user