mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 01:12:19 -05:00
integrate imap-client master with webworker stuff merged
This commit is contained in:
parent
6f6168b2b5
commit
a3849af57f
@ -11,7 +11,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"crypto-lib": "https://github.com/whiteout-io/crypto-lib/tarball/master",
|
||||
"imap-client": "git+ssh://git@github.com:whiteout-io/imap-client.git#amd",
|
||||
"imap-client": "git+ssh://git@github.com:whiteout-io/imap-client.git#master",
|
||||
"smtp-client": "git+ssh://git@github.com:whiteout-io/smtp-client.git#master",
|
||||
"requirejs": "2.1.8"
|
||||
},
|
||||
|
@ -323,6 +323,15 @@ define(function(require) {
|
||||
// return result from the worker
|
||||
options.callback(null, e.data);
|
||||
};
|
||||
worker.onerror = function(e) {
|
||||
// show error message in console
|
||||
console.error('Error handling web worker: Line ' + e.lineno + ' in ' + e.filename + ': ' + e.message);
|
||||
// return error
|
||||
options.callback({
|
||||
errMsg: (e.message) ? e.message : e
|
||||
});
|
||||
return;
|
||||
};
|
||||
// send data to the worker
|
||||
worker.postMessage(options.args);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user