blob: ac78f0abbe74ba074df291555555160be67ffa7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!DOCTYPE HTML>
<script>
var bc = new BroadcastChannel("navigate");
window.onload = () => {
bc.onmessage = (event) => {
if (event.data.command == "navigate") {
window.location = event.data.location;
bc.close();
}
if (event.data.command == "back") {
history.back();
bc.close();
}
}
bc.postMessage({command: "loaded", scrollRestoration: history.scrollRestoration});
}
</script>
|