Cable-Desktop/js
lilia a1a528ccdd Finish abstracting native client
Firstly, don't initialize textsecure.nativclient unless the browser
supports it. The mimetype-check trick is hewn from nacl-common.js.

Secondly, nativeclient crypto functions will all automatically wait for
the module to load before sending messages, so we needn't register any
onload callbacks outside nativeclient.js. (Previously, if you wanted to
do crypto with native client, you would have to register a call back and
wait for the module to load.) Now that the native client crypto is
encapsulated behind a nice interface, it can handle all that
onload-callback jazz internally: if the module isn't loaded when you
call a nativeclient function, return a promise that waits for the load
callback, and eventually resolves with the result of the requested
command. This removes the need for textsecure.registerOnLoadCallback.

Finally, although native client has its quirks, it's significantly
faster than the alternative (emscripten compiled js), so this commit
also lets the crypto backend use native client opportunistically, if
it's available, falling back to js if not, which should make us
compatible with older versions of chrome and chromium.
2014-11-09 15:23:23 -08:00
..
models Use FileReader to base64 encode attachments 2014-11-03 15:01:52 -08:00
storage Move storage objects to their own files 2014-10-28 22:47:48 -07:00
views Add attachment inputs to new conversation form 2014-11-03 17:51:57 -08:00
api.js Wrap some long lines 2014-11-06 18:13:54 -08:00
background.js Finish abstracting native client 2014-11-09 15:23:23 -08:00
chromium.js moved some chromium-specific code into chromium.js (using extension.navigator namespace) 2014-06-01 21:33:58 +02:00
components.js Bowerize backbone.localstorage 2014-11-03 17:27:44 -08:00
crypto.js Finish abstracting native client 2014-11-09 15:23:23 -08:00
curve25519_compiled.js Hooray for options 2014-11-08 11:38:32 -08:00
helpers.js Finish abstracting native client 2014-11-09 15:23:23 -08:00
index.js Finish abstracting native client 2014-11-09 15:23:23 -08:00
libphonenumber-util.js Move phonenumbery utils to libphonenumber object 2014-10-13 22:49:39 -07:00
nativeclient.js Finish abstracting native client 2014-11-09 15:23:23 -08:00
options.js Finish abstracting native client 2014-11-09 15:23:23 -08:00
protobufs.js Refactor textsecure.protos -> textsecure.protobuf 2014-10-20 15:11:16 -07:00
protocol.js Finish abstracting native client 2014-11-09 15:23:23 -08:00
sendmessage.js Refactor crypto.js and native client interface 2014-11-06 04:33:43 -08:00
storage.js Move storage objects to their own files 2014-10-28 22:47:48 -07:00
webcrypto.js Refactor crypto.js and native client interface 2014-11-06 04:33:43 -08:00