OLD | NEW |
| (Empty) |
1 <script> | |
2 window.addEventListener('load', function() { | |
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 |