mirror of
https://github.com/webui-dev/webui.git
synced 2024-09-11 14:06:09 +03:00
Bridge - Fix unwanted logs
This commit is contained in:
parent
9c07d87041
commit
a89a10120a
@ -648,7 +648,7 @@ class WebuiBridge {
|
||||
// 3: [CMD]
|
||||
// 4: [URL]
|
||||
const url: string = this.#getDataStrFromPacket(buffer8, this.#PROTOCOL_DATA);
|
||||
console.log(`WebUI -> CMD -> Navigation [${url}]`);
|
||||
if (this.#log) console.log(`WebUI -> CMD -> Navigation [${url}]`);
|
||||
this.#close(this.#CMD_NAVIGATION, url);
|
||||
break;
|
||||
case this.#CMD_NEW_ID:
|
||||
@ -659,7 +659,7 @@ class WebuiBridge {
|
||||
// 3: [CMD]
|
||||
// 4: [New Element]
|
||||
const newElement: string = this.#getDataStrFromPacket(buffer8, this.#PROTOCOL_DATA);
|
||||
console.log(`WebUI -> CMD -> New Bind ID [${newElement}]`);
|
||||
if (this.#log) console.log(`WebUI -> CMD -> New Bind ID [${newElement}]`);
|
||||
if (!this.#bindsList.includes(newElement)) this.#bindsList.push(newElement);
|
||||
// Generate objects
|
||||
this.#updateBindsList();
|
||||
|
Loading…
Reference in New Issue
Block a user