mailto handler (research) (#136)

This commit is contained in:
RainLoop Team 2014-04-16 20:08:37 +04:00
parent 706d4408e7
commit 818bf9fb40
11 changed files with 316 additions and 206 deletions

View file

@ -1016,6 +1016,15 @@ RainLoopApp.prototype.bootstart = function ()
window.SimplePace.sleep();
}
// if (RL.settingsGet('MailToEmail'))
// {
// if (window.postMessage)
// {
// window.console.log('railoop/mailto/auth/' + RL.settingsGet('MailToEmail'), '' + window.location);
//// $.postMessage('railoop/mailto/auth/' + RL.settingsGet('MailToEmail'), '' + window.location);
// }
// }
if (!!RL.settingsGet('Auth'))
{
this.setTitle(Utils.i18n('TITLES/LOADING'));
@ -1098,6 +1107,17 @@ RainLoopApp.prototype.bootstart = function ()
}, 2000);
// if (window.navigator && Utils.isFunc(window.navigator.registerProtocolHandler))
// {
// window.navigator.registerProtocolHandler('mailto',
// window.location.protocol + '//' + window.location.host + window.location.pathname + '?mailto&to=%s',
// '' + (RL.settingsGet('Title') || 'RainLoop'));
// }
//
// $.receiveMessage(function () {
// window.console.log(arguments);
// }, '' + window.location);
Plugins.runHook('rl-start-user-screens');
RL.pub('rl.bootstart-user-screens');
}