blob: 895fbc4e4beab0c1b124b87efe7d6243f33d8445 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!DOCTYPE HTML>
<body>
<script>
function syncXHR() {
let xhr = new XMLHttpRequest();
xhr.open("GET", window.location, false);
xhr.send(null);
}
addEventListener('load', () => {
syncXHR();
document.open();
document.write(
'<body>' +
'<iframe src="about:blank"></iframe>' +
// eslint-disable-next-line no-useless-concat
'<script>window.opener.postMessage("DONE", "*");</' + 'script>' +
'</body>');
document.close();
}, { once: true });
</script>
</body>
|