OpenPGP first look (#53)

This commit is contained in:
RainLoop Team 2014-01-28 01:34:54 +04:00
parent 74991b16d9
commit 098a04eab6
15 changed files with 175 additions and 20 deletions

View file

@ -785,6 +785,18 @@ RainLoopApp.prototype.bootstart = function ()
if (bValue)
{
// if (window.crypto && window.crypto.getRandomValues)
// {
// $.ajax({
// 'url': RL.link().openPgpJs(),
// 'dataType': 'script',
// 'cache': true,
// 'success': function () {
// window.console.log('openPgpJs');
// }
// });
// }
kn.startScreens([MailBoxScreen, SettingsScreen]);
// setup maito protocol
@ -849,7 +861,6 @@ RainLoopApp.prototype.bootstart = function ()
}
if (!Globals.bMobileDevice)
// if (false)
{
_.defer(function () {
Utils.initLayoutResizer('#rl-left', '#rl-right', Enums.ClientSideKeyName.FolderListSize);

View file

@ -257,6 +257,15 @@ LinkBuilder.prototype.notificationMailIcon = function ()
this.sVersion + '/static/css/images/icom-message-notification.png';
};
/**
* @return {string}
*/
LinkBuilder.prototype.openPgpJs = function ()
{
return ('' === this.sCdnStaticDomain ? 'rainloop/v/' : this.sCdnStaticDomain) +
this.sVersion + '/static/js/openpgp.js';
};
/**
* @return {string}
*/