mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 10:52:17 -05:00
Correct worker paths
This commit is contained in:
parent
0bfef4a710
commit
fc613ce501
@ -10,7 +10,7 @@ var aes = require('crypto-lib').aes,
|
|||||||
config = require('../app-config').config,
|
config = require('../app-config').config,
|
||||||
axe = require('axe-logger');
|
axe = require('axe-logger');
|
||||||
|
|
||||||
var PBKDF2_WORKER = '/crypto/pbkdf2-worker.js';
|
var PBKDF2_WORKER = config.workerPath + '/pbkdf2-worker.js';
|
||||||
|
|
||||||
var Crypto = function() {};
|
var Crypto = function() {};
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ var util = openpgp.util,
|
|||||||
|
|
||||||
var PGP = function() {
|
var PGP = function() {
|
||||||
openpgp.config.prefer_hash_algorithm = openpgp.enums.hash.sha256;
|
openpgp.config.prefer_hash_algorithm = openpgp.enums.hash.sha256;
|
||||||
openpgp.initWorker(config.workerPath + '/../lib/openpgp/openpgp.worker.js');
|
openpgp.initWorker(config.workerPath + '/openpgp.worker.js');
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user