OLD | NEW |
---|---|
1 <img src="http://127.0.0.1:8080/security/resources/compass.jpg" | |
2 srcset> | |
3 <script> | 1 <script> |
4 window.onload = function() { | 2 window.onload = function() { |
5 if (window.opener) | 3 var img = document.createElement('img'); |
6 window.opener.postMessage('done', '*'); | 4 img.src = "http://127.0.0.1:8080/security/resources/compass.jpg"; |
5 img.srcset = ""; | |
Łukasz Anforowicz
2016/04/13 17:16:35
Please double-check. AFAICT this is equivalent to
| |
6 img.addEventListener('load', function () { | |
7 if (window.opener) | |
8 window.opener.postMessage('done', '*'); | |
9 }); | |
10 document.body.appendChild(img); | |
7 }; | 11 }; |
8 </script> | 12 </script> |
OLD | NEW |