Skip to content

Commit d68226f

Browse files
committed
Address Chrome error 5
1 parent 143f30f commit d68226f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/playground/website/src/github/acquire-oauth-token-if-needed.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export async function acquireOAuthTokenIfNeeded() {
3434

3535
// Reload the page to retry the blueprint with the new token
3636
// This is necessary because the blueprint failed before we had the token
37-
window.location.href = url.toString();
37+
// Use replace() instead of href assignment to avoid Chrome Error 5
38+
window.location.replace(url.toString());
3839
} finally {
3940
oAuthState.value = {
4041
...oAuthState.value,

0 commit comments

Comments
 (0)