mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 01:12:19 -05:00
update app.config invokation in crypto
This commit is contained in:
parent
fc6618b443
commit
dd458c719a
@ -10,7 +10,7 @@ define(function(require) {
|
|||||||
rsa = require('cryptoLib/rsa'),
|
rsa = require('cryptoLib/rsa'),
|
||||||
cryptoBatch = require('cryptoLib/crypto-batch'),
|
cryptoBatch = require('cryptoLib/crypto-batch'),
|
||||||
pbkdf2 = require('js/crypto/pbkdf2'),
|
pbkdf2 = require('js/crypto/pbkdf2'),
|
||||||
app = require('js/app-config');
|
config = require('js/app-config').config;
|
||||||
|
|
||||||
var self = {},
|
var self = {},
|
||||||
passBasedKey,
|
passBasedKey,
|
||||||
@ -314,7 +314,7 @@ define(function(require) {
|
|||||||
// check for WebWorker support
|
// check for WebWorker support
|
||||||
if (window.Worker) {
|
if (window.Worker) {
|
||||||
// init webworker thread
|
// init webworker thread
|
||||||
var worker = new Worker(app.config.workerPath + options.script);
|
var worker = new Worker(config.workerPath + options.script);
|
||||||
worker.onmessage = function(e) {
|
worker.onmessage = function(e) {
|
||||||
if (e.data.err) {
|
if (e.data.err) {
|
||||||
options.callback(e.data.err);
|
options.callback(e.data.err);
|
||||||
|
Loading…
Reference in New Issue
Block a user