mirror of
https://github.com/moparisthebest/mail
synced 2025-02-07 02:20:14 -05:00
cleanup nacl worker
This commit is contained in:
parent
3d5ab5db5f
commit
6a9f2c00be
@ -3,9 +3,6 @@
|
||||
|
||||
// import web worker dependencies
|
||||
importScripts('../../lib/nacl.js');
|
||||
importScripts('../app-config.js');
|
||||
importScripts('./util.js');
|
||||
importScripts('./nacl-crypto.js');
|
||||
|
||||
/**
|
||||
* In the web worker thread context, 'this' and 'self' can be used as a global
|
||||
@ -14,9 +11,7 @@
|
||||
self.onmessage = function(e) {
|
||||
|
||||
var args = e.data,
|
||||
output = null,
|
||||
util = new app.crypto.Util(),
|
||||
crypto = new app.crypto.NaclCrypto(nacl, util);
|
||||
output = null;
|
||||
|
||||
if (args.type === 'encrypt' && args.plaintext && args.nonce && args.recipientPk && args.senderSk) {
|
||||
// start encryption
|
||||
|
Loading…
Reference in New Issue
Block a user