From dd458c719a364efee7e9a725d65efe9d5fb96681 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Sun, 15 Sep 2013 15:17:28 +0200 Subject: [PATCH] update app.config invokation in crypto --- src/js/crypto/crypto.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/crypto/crypto.js b/src/js/crypto/crypto.js index 2d45120..183183c 100644 --- a/src/js/crypto/crypto.js +++ b/src/js/crypto/crypto.js @@ -10,7 +10,7 @@ define(function(require) { rsa = require('cryptoLib/rsa'), cryptoBatch = require('cryptoLib/crypto-batch'), pbkdf2 = require('js/crypto/pbkdf2'), - app = require('js/app-config'); + config = require('js/app-config').config; var self = {}, passBasedKey, @@ -314,7 +314,7 @@ define(function(require) { // check for WebWorker support if (window.Worker) { // init webworker thread - var worker = new Worker(app.config.workerPath + options.script); + var worker = new Worker(config.workerPath + options.script); worker.onmessage = function(e) { if (e.data.err) { options.callback(e.data.err);