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() { registerMailto() {
console.log(`mailto = ${location.protocol}//${location.host}${location.pathname}?mailto`);
navigator.registerProtocolHandler( navigator.registerProtocolHandler(
'mailto', 'mailto',
location.protocol + '//' + location.host + location.pathname + '?mailto&to=%s', `${location.protocol}//${location.host}${location.pathname}?mailto&to=%s`,
(SettingsGet('title') || 'SnappyMail') (SettingsGet('title') || 'SnappyMail')
); );
alert(i18n('GLOBAL/DONE')); alert(i18n('GLOBAL/DONE'));