Index: native_client_sdk/src/examples/common.js |
=================================================================== |
--- native_client_sdk/src/examples/common.js (revision 151748) |
+++ native_client_sdk/src/examples/common.js (working copy) |
@@ -27,6 +27,10 @@ |
moduleEl.setAttribute('height',height); |
moduleEl.setAttribute('src', tool + '/' + config + '/' + name + '.nmf'); |
moduleEl.setAttribute('type', 'application/x-nacl'); |
+ if (tool == 'win' || tool == 'linux' || tool == 'mac') { |
+ mimename = 'application/x-ppapi-' + config.toLowerCase(); |
binji
2012/08/16 00:17:52
s/mimename/mimetype/?
noelallen1
2012/08/16 17:58:30
Done.
|
+ moduleEl.setAttribute('type', mimename); |
+ } |
// The <EMBED> element is wrapped inside a <DIV>, which has both a 'load' |
// and a 'message' event listener attached. This wrapping method is used |