mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-04 08:19:21 +00:00
(js) Catch exception when registering mailto
This commit is contained in:
1 parent
cc9df8e24f
commit
4a8e3ed310
2 files changed
+5
-1
No files matched your search
@@ -145,7 +145,10 @@
|
||||
// Try to register SOGo has an handler for mailto: links
|
||||
if (navigator && navigator.registerProtocolHandler) {
|
||||
var mailtoURL = window.location.origin + window.ApplicationBaseURL + 'UIxMailPopupView#!/Mail/0/INBOX/new?%s';
|
||||
navigator.registerProtocolHandler('mailto', mailtoURL, 'SOGo');
|
||||
try {
|
||||
navigator.registerProtocolHandler('mailto', mailtoURL, 'SOGo');
|
||||
}
|
||||
catch (e) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user