Skip to content

Commit b8230dc

Browse files
committed
Use window.location rather than goto for remaining magic URLs
1 parent 5324be7 commit b8230dc

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/routes/auth/oauth2/failure/+page.svelte

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
if (!project) {
1111
reject('no-project');
1212
}
13-
// this timeout is needed because goto does not
14-
// throw an exception if the redirect does not work
15-
setTimeout(() => reject('timeout'), 500);
16-
// goto will resolve on successful redirect
17-
goto(link).then(resolve);
13+
window.location = link;
1814
});
1915
</script>
2016

src/routes/auth/oauth2/success/+page.svelte

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
if (!project) {
1111
reject('no-project');
1212
}
13-
// this timeout is needed because goto does not
14-
// throw an exception if the redirect does not work
15-
setTimeout(() => reject('timeout'), 500);
16-
// goto will resolve on successful redirect
17-
goto(link).then(resolve);
13+
window.location = link;
1814
});
1915
</script>
2016

0 commit comments

Comments
 (0)