mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Use window.location rather than goto for remaining magic URLs
This commit is contained in:
@@ -10,11 +10,7 @@
|
||||
if (!project) {
|
||||
reject('no-project');
|
||||
}
|
||||
// this timeout is needed because goto does not
|
||||
// throw an exception if the redirect does not work
|
||||
setTimeout(() => reject('timeout'), 500);
|
||||
// goto will resolve on successful redirect
|
||||
goto(link).then(resolve);
|
||||
window.location = link;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -10,11 +10,7 @@
|
||||
if (!project) {
|
||||
reject('no-project');
|
||||
}
|
||||
// this timeout is needed because goto does not
|
||||
// throw an exception if the redirect does not work
|
||||
setTimeout(() => reject('timeout'), 500);
|
||||
// goto will resolve on successful redirect
|
||||
goto(link).then(resolve);
|
||||
window.location = link;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user