mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Use window.location rather than goto for remaining magic URLs
This commit is contained in:
1 parent
5324be7e8f
commit
b8230dc14d
2 files changed
+2
-10
No files matched your search
@@ -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