cleanup console spam
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQT/foVVmI9pK13hPWFohAcXSWbK8wUCZomSXAAKCRBohAcXSWbK 84N/AQD9eQot8ORhyq0wOjpvKmH2pg+0rHD7YYfXbrH+9Fg9nQD/XY//YTWAhdUm rxbptnBiZlkxKO2YNHHynoodppj6mgo= =KHzO -----END PGP SIGNATURE-----
2 files changed,
1 insertions(+),
9 deletions(-)
M
ts/adapter-element.ts
→
ts/adapter-element.ts
@@ -45,9 +45,7 @@
// initialize the view if it's changed const view = this.getAttribute("data-view"); if (this._view != view ?? "index") { - console.log("view changed! let's go") this._view = view ?? "index"; - console.log(this._view); switch (this._view) { case "index": this.setIdxView();@@ -68,7 +66,6 @@ // if latest changed, check if it's a message
const latest = this.getAttribute("latest"); if (latest ?? "" != this._latest) { this._latest = latest ?? ""; - console.log("about to update the index view"); let datastore = _("datastore"); console.log(datastore); const latestMsg = datastore.messages.get(this._latest);@@ -160,20 +157,16 @@ populateProfileView() {
} buildThreads() { - console.log("building threads for " + this._name); const datastore = _("datastore")[this._name]; // make multiple passes over the store until every message is either // placed in a thread, or orphaned and waiting for its parent to be returned do{ - console.log("making a pass at all the messages"); for (let k of datastore.messages.keys()) { this.placeMsg(k); } } while (this._threads.reduce((sum: number, thread: MessageThread)=>{ return sum + thread.messageCount; - }, 0) + this._orphans.length < datastore.messages.keys().length) - console.log("all messages have been placed"); - console.log(JSON.stringify(this._threads)); + }, 0) + this._orphans.length < datastore.messages.keys().length); } placeMsg(k: string): string | null {
M
ts/settings-element.ts
→
ts/settings-element.ts
@@ -95,7 +95,6 @@ return ()=>{
let adapterdata: any = {}; // get selected adapter protocol const proto = $("settings_newadapter_protocolselect") as HTMLSelectElement; - console.log(proto.options[proto.selectedIndex]); const nickname = ($("settings_newadapter_nickname") as HTMLInputElement)?.value ?? "" ;