Experimental function calling across tabs

This commit is contained in:
Carlo Piovesan 2022-10-05 14:32:01 +02:00
parent 62353ff310
commit 2b4933aaba
2 changed files with 7 additions and 1 deletions

View file

@ -100,7 +100,7 @@
await up();
statusElem.innerHTML = "Starting login...";
const url = await loginPromise;
w.location.href = url;
w.changeLocation(url);
}
waitLogin();
};

View file

@ -5,6 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Tailscale login</title>
<script>
function changeLocation(url)
{
window.location.href = url;
}
</script>
</head>
<body>
Loading network code...