OLD | NEW |
1 <script> | 1 <script> |
2 window.onload = function() { | 2 window.onload = function() { |
3 var img = document.createElement('img'); | 3 var img = document.createElement('img'); |
4 img.src = 'http://127.0.0.1:8080/security/resources/compass.jpg'; | 4 img.src = 'http://example.test:8080/security/resources/compass.jpg'; |
5 img.srcset = 'http://127.0.0.1:8080/security/resources/compass.jpg 2x'; | 5 img.srcset = 'http://example.test:8080/security/resources/compass.jpg 2x'; |
6 img.addEventListener('load', function () { | 6 img.addEventListener('load', function () { |
7 if (window.opener) | 7 if (window.opener) |
8 window.opener.postMessage('done', '*'); | 8 window.opener.postMessage('done', '*'); |
9 }); | 9 }); |
10 document.body.appendChild(img); | 10 document.body.appendChild(img); |
11 }; | 11 }; |
12 </script> | 12 </script> |
OLD | NEW |