Skip to content

Commit

Permalink
Fix Bridge TypeScript Navigation Release Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hassandraga committed Jul 13, 2024
1 parent ecccc7e commit 2e94629
Show file tree
Hide file tree
Showing 2 changed files with 539 additions and 541 deletions.
8 changes: 3 additions & 5 deletions bridge/webui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,11 +516,9 @@ class WebuiBridge {
#wsOnClose = (event: CloseEvent) => {
if (this.#closeReason === this.#CMD_NAVIGATION) {
this.#closeReason = 0;
if (this.#log) {
console.log(`WebUI -> Connection lost. Navigation to [${this.#closeValue}]`);
this.#allowNavigation = true;
globalThis.location.replace(this.#closeValue);
}
if (this.#log) console.log(`WebUI -> Connection lost. Navigation to [${this.#closeValue}]`);
this.#allowNavigation = true;
globalThis.location.replace(this.#closeValue);
} else {
if (this.#wsStayAlive) {
// Re-connect
Expand Down
Loading

0 comments on commit 2e94629

Please sign in to comment.