Experimental function calling across tabs
This commit is contained in:
parent
62353ff310
commit
2b4933aaba
2 changed files with 7 additions and 1 deletions
|
@ -100,7 +100,7 @@
|
||||||
await up();
|
await up();
|
||||||
statusElem.innerHTML = "Starting login...";
|
statusElem.innerHTML = "Starting login...";
|
||||||
const url = await loginPromise;
|
const url = await loginPromise;
|
||||||
w.location.href = url;
|
w.changeLocation(url);
|
||||||
}
|
}
|
||||||
waitLogin();
|
waitLogin();
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
<title>Tailscale login</title>
|
<title>Tailscale login</title>
|
||||||
|
<script>
|
||||||
|
function changeLocation(url)
|
||||||
|
{
|
||||||
|
window.location.href = url;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
Loading network code...
|
Loading network code...
|
||||||
|
|
Loading…
Reference in a new issue