From 6a9f2c00beba725b46049ca4f6761e7b474a1bbf Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Thu, 11 Apr 2013 16:37:39 +0200 Subject: [PATCH] cleanup nacl worker --- src/js/crypto/nacl-worker.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/js/crypto/nacl-worker.js b/src/js/crypto/nacl-worker.js index f2859a1..4a99613 100644 --- a/src/js/crypto/nacl-worker.js +++ b/src/js/crypto/nacl-worker.js @@ -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