|
|
@ -78,13 +78,13 @@ export class Linkify extends React.Component<Props> {
|
|
|
|
const url = e.target.href;
|
|
|
|
const url = e.target.href;
|
|
|
|
|
|
|
|
|
|
|
|
const openLink = () => {
|
|
|
|
const openLink = () => {
|
|
|
|
// window.open(e.target.href);
|
|
|
|
|
|
|
|
void shell.openExternal(url);
|
|
|
|
void shell.openExternal(url);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
window.inboxStore?.dispatch(updateConfirmModal({
|
|
|
|
window.inboxStore?.dispatch(updateConfirmModal({
|
|
|
|
title: "Hello",
|
|
|
|
title: window.i18n('linkVisitWarningTitle'),
|
|
|
|
message: "Are you sure you want to open this link?",
|
|
|
|
message: window.i18n("linkVisitWarningMessage", url),
|
|
|
|
|
|
|
|
okText: window.i18n("open"),
|
|
|
|
onClickOk: openLink,
|
|
|
|
onClickOk: openLink,
|
|
|
|
onClickClose: () => {
|
|
|
|
onClickClose: () => {
|
|
|
|
window.inboxStore?.dispatch(updateConfirmModal(null));
|
|
|
|
window.inboxStore?.dispatch(updateConfirmModal(null));
|
|
|
|