mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
See spec issue https://github.com/whatwg/html/issues/9869 Previous attempt on fixing reload had to be reverted because it broke Soundcloud and GitHub, but this change does not seem to introduce new crashes.
13 lines
370 B
HTML
13 lines
370 B
HTML
<script>
|
|
window.addEventListener('message', event => {
|
|
if (event.data && event.data.action === 'reload') {
|
|
window.parent.postMessage({ action: 'acknowledge-asked-to-reload' });
|
|
location.reload();
|
|
}
|
|
});
|
|
|
|
window.addEventListener('load', () => {
|
|
window.parent.postMessage({ action: 'loaded' });
|
|
});
|
|
</script>
|