redirectTo is not a const

This commit is contained in:
Johannes Zellner
2025-08-10 15:53:05 +02:00
parent fed0c7a330
commit 76ab99bca6

View File

@@ -1,3 +1,5 @@
<!DOCTYPE html>
<script>
const tmp = window.location.hash.slice(1).split('&');
@@ -7,7 +9,7 @@ tmp.forEach(function (pair) {
if (pair.indexOf('access_token=') === 0) localStorage.token = pair.split('=')[1];
});
const redirectTo = '/';
let redirectTo = '/';
if (localStorage.getItem('redirectToHash')) {
redirectTo += localStorage.getItem('redirectToHash');
localStorage.removeItem('redirectToHash');