mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-13 22:52:52 +00:00
12 lines
397 B
HTML
12 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>
|