mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 06:58:27 +03:00
console.log the mailto handler
This commit is contained in:
parent
a3d9d98184
commit
f644430a78
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue