mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-15 04:29:27 +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.
12 lines
370 B
HTML
12 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>
|