Skip NaCL if we're not running from chrome-extension:
This commit is contained in:
parent
5785f4033c
commit
325115b7ea
1 changed files with 3 additions and 2 deletions
|
@ -17,8 +17,9 @@
|
|||
'use strict';
|
||||
window.textsecure = window.textsecure || {};
|
||||
|
||||
if (navigator.mimeTypes['application/x-nacl'] === undefined &&
|
||||
navigator.mimeTypes['application/x-pnacl'] === undefined) {
|
||||
if ((navigator.mimeTypes['application/x-nacl'] === undefined &&
|
||||
navigator.mimeTypes['application/x-pnacl'] === undefined) ||
|
||||
window.location.protocol != "chrome-extension:") {
|
||||
// browser does not support native client.
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue