Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <script> | |
| 2 function onMessage(event) { | |
| 3 var script = document.createElement('script'); | |
| 4 script.src = event.data.url; | |
| 5 script.addEventListener( | |
| 6 'error', | |
| 7 function() { report({jsonpResult:'error'}); }); | |
| 8 document.body.appendChild(script); | |
| 9 } | |
| 10 function report(data) { | |
| 11 window.parent.postMessage( | |
| 12 data, | |
| 13 'http://127.0.0.1:8000'); | |
| 14 } | |
| 15 function onload() { | |
| 16 window.addEventListener('message', onMessage, false); | |
| 17 } | |
| 18 window.addEventListener('load', onload); | |
| 19 </script> | |
|
falken
2014/07/25 05:41:29
This is also a new file and should conform to new
horo
2014/07/25 06:00:55
Done.
| |
| OLD | NEW |