Search code examples
google-nativeclient

detecting native client on end user's laptop from a web page?


Can I detect whether a native client is installed on end user's laptop from a web page using Javascript ?

What approaches can i take to do this ? Are there any Chrome APIs available for this.


Solution

  • You can detect PNaCl support from JavaScript using navigator.mimeTypes['application/x-pnacl'] !== undefined, and swap in x-nacl for NaCl.