mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
mailto handler (research) (#136)
This commit is contained in:
parent
706d4408e7
commit
818bf9fb40
11 changed files with 316 additions and 206 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue