Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <script> | |
| 2 window.addEventListener("load", function() { | |
|
nhiroki
2016/02/09 04:48:42
nit: single-quotes (') are preferred to double-quo
horo
2016/02/10 06:09:22
Done.
| |
| 3 init(); | |
| 4 }, false); | |
| 5 | |
| 6 function init() { | |
| 7 var embed = document.createElement("embed"); | |
| 8 embed.addEventListener("message", function(message) { | |
| 9 window.domAutomationController.setAutomationId(0); | |
| 10 window.domAutomationController.send(message.data); | |
| 11 }, false); | |
| 12 embed.addEventListener("load", function() { | |
| 13 embed.postMessage(location.hash.substr(1)); | |
| 14 }, false); | |
| 15 embed.src = "pnacl_url_loader.nmf"; | |
| 16 embed.type = "application/x-pnacl"; | |
| 17 document.body.appendChild(embed); | |
| 18 } | |
| 19 </script> | |
| OLD | NEW |