From 5e6b11e73c896a86db21469d793190ebb2ceb2a9 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 22 Mar 2023 13:03:23 -0600 Subject: [PATCH] Et2UrlEmail: Use default mail app when preference says to --- api/js/etemplate/Et2Url/Et2UrlEmail.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/js/etemplate/Et2Url/Et2UrlEmail.ts b/api/js/etemplate/Et2Url/Et2UrlEmail.ts index 2ed58f5a24..9e2c527423 100644 --- a/api/js/etemplate/Et2Url/Et2UrlEmail.ts +++ b/api/js/etemplate/Et2Url/Et2UrlEmail.ts @@ -13,6 +13,7 @@ import {IsEmail} from "../Validators/IsEmail"; import {Et2Textbox} from "../Et2Textbox/Et2Textbox"; import {colorsDefStyles} from "../Styles/colorsDefStyles"; import {css} from "@lion/core"; +import {egw} from "../../jsapi/egw_global"; /** * @customElement et2-url-email @@ -56,6 +57,10 @@ export class Et2UrlEmail extends Et2InvokerMixin(Et2Textbox) { egw.open_link('mailto:'+value); } + else + { + window.open("mailto:" + value); + } } } // @ts-ignore TypeScript is not recognizing that this is a LitElement