Skip to content

Commit 2e94629

Browse files
committed
Fix Bridge TypeScript Navigation Release Mode
* More inf: webui-dev/zig-webui#58 (comment)
1 parent ecccc7e commit 2e94629

File tree

2 files changed

+539
-541
lines changed

2 files changed

+539
-541
lines changed

bridge/webui.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,9 @@ class WebuiBridge {
516516
#wsOnClose = (event: CloseEvent) => {
517517
if (this.#closeReason === this.#CMD_NAVIGATION) {
518518
this.#closeReason = 0;
519-
if (this.#log) {
520-
console.log(`WebUI -> Connection lost. Navigation to [${this.#closeValue}]`);
521-
this.#allowNavigation = true;
522-
globalThis.location.replace(this.#closeValue);
523-
}
519+
if (this.#log) console.log(`WebUI -> Connection lost. Navigation to [${this.#closeValue}]`);
520+
this.#allowNavigation = true;
521+
globalThis.location.replace(this.#closeValue);
524522
} else {
525523
if (this.#wsStayAlive) {
526524
// Re-connect

0 commit comments

Comments
 (0)