| <script> |
| window.addEventListener('load', function() { |
| init(); |
| }, false); |
| |
| function init() { |
| var embed = document.createElement('embed'); |
| embed.addEventListener('message', function(message) { |
| window.domAutomationController.send(message.data); |
| }, false); |
| embed.addEventListener('load', function() { |
| embed.postMessage(location.hash.substr(1)); |
| }, false); |
| // The code for this plug-in is in pnacl_url_loader.cc. |
| embed.src = 'pnacl_url_loader.nmf'; |
| embed.type = 'application/x-pnacl'; |
| document.body.appendChild(embed); |
| } |
| </script> |