Skip to content

Commit dc2d1f0

Browse files
committed
Remove defensive logic
1 parent 30af700 commit dc2d1f0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/clerk-js/src/core/clerk.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,8 +2640,6 @@ export class Clerk implements ClerkInterface {
26402640
initComponents();
26412641
await initClient();
26422642
} else {
2643-
this.#broadcastChannel?.close();
2644-
this.#broadcastChannel = null;
26452643
throw e;
26462644
}
26472645
}
@@ -2660,12 +2658,8 @@ export class Clerk implements ClerkInterface {
26602658
await this.#authService.handleUnauthenticatedDevBrowser();
26612659
} else if (!isValidBrowserOnline()) {
26622660
console.warn(err);
2663-
this.#broadcastChannel?.close();
2664-
this.#broadcastChannel = null;
26652661
return;
26662662
} else {
2667-
this.#broadcastChannel?.close();
2668-
this.#broadcastChannel = null;
26692663
throw err;
26702664
}
26712665
}

0 commit comments

Comments
 (0)