mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
13 lines
397 B
HTML
13 lines
397 B
HTML
<!DOCTYPE html>
|
|
<script>
|
|
window.addEventListener('hashchange', (event) => {
|
|
const oldURL = new URL(event.oldURL);
|
|
const newURL = new URL(event.newURL);
|
|
parent.postMessage(`hashchange oldURL.hash=${oldURL.hash} newURL.hash=${newURL.hash}`, "*");
|
|
if (location.hash === "#test")
|
|
location.hash = "#done";
|
|
});
|
|
|
|
location.hash = "#test";
|
|
</script>
|