Made registerProtocolHandler('mailto') optional by activating at Settings -> General

This commit is contained in:
the-djmaze 2024-07-07 18:16:39 +02:00
parent 325197175b
commit a3d9d98184
40 changed files with 88 additions and 49 deletions

View file

@ -147,7 +147,6 @@ export class AppUser extends AbstractApp {
}
logout() {
localStorage.removeItem('register_protocol_offered');
Remote.request('Logout', () => rl.logoutReload(Settings.app('customLogoutLink')));
}
@ -222,17 +221,6 @@ export class AppUser extends AbstractApp {
SMimeUserStore.loadCertificates();
setTimeout(() => mailToHelper(SettingsGet('mailToEmail')), 500);
if (!localStorage.getItem('register_protocol_offered')) {
console.log('register mailto protocol');
navigator.registerProtocolHandler?.(
'mailto',
location.protocol + '//' + location.host + location.pathname + '?mailto&to=%s',
(SettingsGet('title') || 'SnappyMail')
);
localStorage.setItem('register_protocol_offered', '1');
}
} else {
this.logout();
}

View file

@ -30,6 +30,8 @@ export class UserSettingsGeneral extends AbstractViewSettings {
constructor() {
super();
this.mailto = ko.observable(!!navigator.registerProtocolHandler);
this.language = LanguageStore.language;
this.languages = LanguageStore.languages;
this.hourCycle = LanguageStore.hourCycle;
@ -181,4 +183,14 @@ export class UserSettingsGeneral extends AbstractViewSettings {
selectLanguage() {
showScreenPopup(LanguagesPopupView, [this.language, this.languages(), LanguageStore.userLanguage()]);
}
registerMailto() {
navigator.registerProtocolHandler(
'mailto',
location.protocol + '//' + location.host + location.pathname + '?mailto&to=%s',
(SettingsGet('title') || 'SnappyMail')
);
alert(i18n('GLOBAL/DONE'));
this.mailto(0);
}
}

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "قم باضافة المستلمين تلقائيا الى دفتر العناوين",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Белы спіс альбо запытваць",
"IMAGES_OPTION_ALWAYS": "Показваць заўсёды",
"IMAGES_WHITELIST": "Фарматы з белага спісу",
"MESSAGE_POPUP_WINDOW": "Усплываючае вакно ў новым вакне замест карткі"
"MESSAGE_POPUP_WINDOW": "Усплываючае вакно ў новым вакне замест карткі",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Аўтаматычна дадаваць атрымальнікаў лістоў у адрасную кнігу",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Автоматично добавяне на получателите към адресната ви книга",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Automaticky přidávat adresy příjemců do Adresáře",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Tilføj automatisk modtager til adressebog",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Nutze Ausnahmeliste oder frage den Benutzer",
"IMAGES_OPTION_ALWAYS": "Immer anzeigen",
"IMAGES_WHITELIST": "Ausnahmeliste für Bilder",
"MESSAGE_POPUP_WINDOW": "In neuem Fenster statt Tab anzeigen"
"MESSAGE_POPUP_WINDOW": "In neuem Fenster statt Tab anzeigen",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Empfänger automatisch zu Ihrem Adressbuch hinzuzufügen",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Αυτόματη προσθήκη επαφών στον κατάλογο διευθύνσεων",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Automatically add recipients to your address book",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Lista blanca o preguntar",
"IMAGES_OPTION_ALWAYS": "Mostrar siempre",
"IMAGES_WHITELIST": "Lista blanca de imágenes",
"MESSAGE_POPUP_WINDOW": "Popup en nueva ventana en lugar de pestaña"
"MESSAGE_POPUP_WINDOW": "Popup en nueva ventana en lugar de pestaña",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Agregar automáticamente destinatarios a la libreta de direcciones",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Lisa saajad automaatselt aadressiraamatusse",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Automatikoki gehitu hartzaileak helbide-liburura",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "اطلاعات تماس گیرندگان را بصورت خودکار در آدرس‌بوک ذخیره کن",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Lisää yhetystieto automaattisesti osoitekirjaan",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Ajouter à la liste blanche ou demander",
"IMAGES_OPTION_ALWAYS": "Toujours afficher",
"IMAGES_WHITELIST": "Liste blanche Images",
"MESSAGE_POPUP_WINDOW": "Popup dans une nouvelle fenêtre au lieu d'un onglet"
"MESSAGE_POPUP_WINDOW": "Popup dans une nouvelle fenêtre au lieu d'un onglet",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Ajouter automatiquement les destinataires à votre carnet d'adresses",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Címzettek automatikus hozzáadása a címtárhoz",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Tambah penerima ke daftar alamat secara otomatis",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Bæta viðtakendum sjálfkrafa í nafnaskrá",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Usa whitelist o chiedi",
"IMAGES_OPTION_ALWAYS": "Visualizza sempre",
"IMAGES_WHITELIST": "Whitelist per immagini",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Aggiungi automaticamente le persone che ti inviano mail alla rubrica",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "返信したアドレスをアドレス帳へ自動的に追加する",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "수신인을 주소록에 자동으로 추가",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Automatiškai pridėti gavėjus į adresų knygą",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Automatically add recipients to your address book",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Legg til mottakere i adresseboka automatisk",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist of vragen",
"IMAGES_OPTION_ALWAYS": "Altijd tonen",
"IMAGES_WHITELIST": "Afbeeldingen whitelist",
"MESSAGE_POPUP_WINDOW": "Openen in een nieuw venster i.p.v. tab"
"MESSAGE_POPUP_WINDOW": "Openen in een nieuw venster i.p.v. tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Automatisch ontvangers toevoegen aan uw adresboek",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Dodaj do białej listy lub pytaj",
"IMAGES_OPTION_ALWAYS": "Zawsze pokazuj",
"IMAGES_WHITELIST": "Biała lista obrazów",
"MESSAGE_POPUP_WINDOW": "Pokaż w nowym oknie zamiast w nowej karcie"
"MESSAGE_POPUP_WINDOW": "Pokaż w nowym oknie zamiast w nowej karcie",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Automatycznie dodawaj odbiorców do książki adresowej",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Adicionar automaticamente os destinatários na lista de endereços",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Lista Branca ou perguntar",
"IMAGES_OPTION_ALWAYS": "Mostrar sempre",
"IMAGES_WHITELIST": "Lista Branca de imagens",
"MESSAGE_POPUP_WINDOW": "Abrir em nova janela em vez de um separador"
"MESSAGE_POPUP_WINDOW": "Abrir em nova janela em vez de um separador",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Adicionar destinatários automaticamente à sua lista de endereços",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Adaugă automat destinatarii la agenda de scrisori",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Белый список или спрашивать",
"IMAGES_OPTION_ALWAYS": "Показать всегда",
"IMAGES_WHITELIST": "Форматы из белого списка",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Автоматически добавлять получателей писем в адресную книгу",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Automaticky pridávať príjemcov správ do Adresára",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Samodejno dodaj prejemnike v imenik",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Lägg till mottagare automatiskt i din adressbok",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Otomatik olarak adres defterinize alıcıyı ekle",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Автоматично додавати отримувачів у адресну книгу",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "Whitelist or ask",
"IMAGES_OPTION_ALWAYS": "Show always",
"IMAGES_WHITELIST": "Images whitelist",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "Tự động thêm người nhận thư vào sổ địa chỉ của bạn",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "白名單或詢問",
"IMAGES_OPTION_ALWAYS": "永遠顯示",
"IMAGES_WHITELIST": "圖片白名單",
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab"
"MESSAGE_POPUP_WINDOW": "Popup in new window instead of tab",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "自動新增收件者至通訊錄",

View file

@ -489,7 +489,8 @@
"IMAGES_OPTION_WHITELIST": "白名单或询问",
"IMAGES_OPTION_ALWAYS": "总是显示",
"IMAGES_WHITELIST": "图片白名单",
"MESSAGE_POPUP_WINDOW": "弹出页面使用新窗口代替新选项卡"
"MESSAGE_POPUP_WINDOW": "弹出页面使用新窗口代替新选项卡",
"MAILTO": "Register as 'mailto:' links handler"
},
"SETTINGS_CONTACTS": {
"LABEL_CONTACTS_AUTOSAVE": "自动添加到您的地址簿",

View file

@ -191,6 +191,8 @@
</div>
</div>
<button type="button" data-bind="visible: mailto, click: registerMailto" class="btn" data-i18n="SETTINGS_GENERAL/MAILTO"></button>
<div class="legend" data-i18n="SHORTCUTS_HELP/TAB_MESSAGE_VIEW"></div>
<div class="control-group">
<div data-bind="component: {