Skip to content

Commit

Permalink
Fixed bug 3480 - minor update to NACL common.js
Browse files Browse the repository at this point in the history
Sylvain

All latest official NACL examples have a slightly different 'common.js' file. It seems it has been updated in the meantime to fix a bug.
  • Loading branch information
slouken committed Nov 5, 2016
1 parent a17abf1 commit 5298830
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/nacl/common.js
Expand Up @@ -39,7 +39,7 @@ var common = (function() {
mimetype = 'application/x-ppapi-release';
else
mimetype = 'application/x-ppapi-debug';
} else if (tool == 'pnacl' && isRelease) {
} else if (tool == 'pnacl') {
mimetype = 'application/x-pnacl';
}
return mimetype;
Expand Down Expand Up @@ -147,6 +147,11 @@ var common = (function() {
var listenerDiv = document.getElementById('listener');
listenerDiv.appendChild(moduleEl);

// Request the offsetTop property to force a relayout. As of Apr 10, 2014
// this is needed if the module is being loaded on a Chrome App's
// background page (see crbug.com/350445).
moduleEl.offsetTop;

// Host plugins don't send a moduleDidLoad message. We'll fake it here.
var isHost = isHostToolchain(tool);
if (isHost) {
Expand Down

0 comments on commit 5298830

Please sign in to comment.