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.#dom_servermanager.loadServers();
|
||||
//this.setTimer();
|
||||
this.setTimer();
|
||||
break;
|
||||
default:
|
||||
this.#log(5, `Event type ${e.type} not supported`);
|
||||
@@ -80,14 +80,14 @@ class trweb {
|
||||
}
|
||||
|
||||
refresh() {
|
||||
this.#log(5,'Refresh');
|
||||
this.#log(6,'Refresh');
|
||||
for (const [key, value] of Object.entries(this.#dom_servermanager.getServers())) {
|
||||
value.refreshTorrentList();
|
||||
}
|
||||
}
|
||||
|
||||
#timercb = function() {
|
||||
this.#log(5,'Timer tick');
|
||||
this.#log(6,'Timer tick');
|
||||
this.refresh();
|
||||
}.bind(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user