Skip to content

Commit 5dbdd4a

Browse files
committed
add href to appease typescript
1 parent 8276e51 commit 5dbdd4a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/routes/auth/magic-url/+page.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
const secret = $page.url.searchParams.get('secret');
1818
1919
await account.updateMagicURLSession(userId, secret);
20-
window.location = `appwrite-callback-${projectId}://${$page.url.search}`;
20+
window.location.href = `appwrite-callback-${projectId}://${$page.url.search}`;
2121
});
2222
</script>
2323

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
if (!project) {
1010
reject('no-project');
1111
}
12-
window.location = link;
12+
window.location.href = link;
1313
});
1414
</script>
1515

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
if (!project) {
1010
reject('no-project');
1111
}
12-
window.location = link;
12+
window.location.href = link;
1313
});
1414
</script>
1515

0 commit comments

Comments
 (0)