Use window.location rather than goto for remaining magic URLs

This commit is contained in:
Ben McCann
2024-01-22 08:35:03 -08:00
parent 5324be7e8f
commit b8230dc14d
2 changed files with 2 additions and 10 deletions
+1 -5
View File
@@ -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>
+1 -5
View File
@@ -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>