mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
console.log the mailto handler
This commit is contained in:
parent
a3d9d98184
commit
f644430a78
|
@ -185,9 +185,10 @@ export class UserSettingsGeneral extends AbstractViewSettings {
|
|||
}
|
||||
|
||||
registerMailto() {
|
||||
console.log(`mailto = ${location.protocol}//${location.host}${location.pathname}?mailto`);
|
||||
navigator.registerProtocolHandler(
|
||||
'mailto',
|
||||
location.protocol + '//' + location.host + location.pathname + '?mailto&to=%s',
|
||||
`${location.protocol}//${location.host}${location.pathname}?mailto&to=%s`,
|
||||
(SettingsGet('title') || 'SnappyMail')
|
||||
);
|
||||
alert(i18n('GLOBAL/DONE'));
|
||||
|
|
Loading…
Reference in a new issue