console.log the mailto handler

This commit is contained in:
the-djmaze 2024-07-07 18:34:23 +02:00
parent a3d9d98184
commit f644430a78

View file

@ -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'));