Add additional logging for OpenPGP

Remove enforcing lower case for email addresses
Small fixes
This commit is contained in:
RainLoop Team 2015-08-26 21:04:50 +03:00
parent 436e54891e
commit 3498700f61
11 changed files with 89 additions and 17 deletions

View file

@ -124,11 +124,10 @@
{
var
oE = null,
oLink = null,
sUserAgent = window.navigator.userAgent.toLowerCase()
oLink = null
;
if (sUserAgent && (sUserAgent.indexOf('chrome') > -1 || sUserAgent.indexOf('chrome') > -1))
if (Globals.sUserAgent && (Globals.sUserAgent.indexOf('chrome') > -1 || Globals.sUserAgent.indexOf('chrome') > -1))
{
oLink = window.document.createElement('a');
oLink['href'] = sLink;

View file

@ -1383,7 +1383,14 @@
if (window.Worker)
{
PgpStore.openpgp.initWorker(Links.openPgpWorkerJs());
try
{
PgpStore.openpgp.initWorker(Links.openPgpWorkerJs());
}
catch (e)
{
Utils.log(e);
};
}
// PgpStore.openpgp.config.useWebCrypto = false;