Skip to content

Commit a89a101

Browse files
committed
Bridge - Fix unwanted logs
1 parent 9c07d87 commit a89a101

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bridge/webui.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ class WebuiBridge {
648648
// 3: [CMD]
649649
// 4: [URL]
650650
const url: string = this.#getDataStrFromPacket(buffer8, this.#PROTOCOL_DATA);
651-
console.log(`WebUI -> CMD -> Navigation [${url}]`);
651+
if (this.#log) console.log(`WebUI -> CMD -> Navigation [${url}]`);
652652
this.#close(this.#CMD_NAVIGATION, url);
653653
break;
654654
case this.#CMD_NEW_ID:
@@ -659,7 +659,7 @@ class WebuiBridge {
659659
// 3: [CMD]
660660
// 4: [New Element]
661661
const newElement: string = this.#getDataStrFromPacket(buffer8, this.#PROTOCOL_DATA);
662-
console.log(`WebUI -> CMD -> New Bind ID [${newElement}]`);
662+
if (this.#log) console.log(`WebUI -> CMD -> New Bind ID [${newElement}]`);
663663
if (!this.#bindsList.includes(newElement)) this.#bindsList.push(newElement);
664664
// Generate objects
665665
this.#updateBindsList();

0 commit comments

Comments
 (0)