From 607a13720a2d0f332e0cce6071da6652028c81ae Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 12 Apr 2021 19:35:53 +0200 Subject: [PATCH] fix: onbeforeunload triggered for link click (#653) --- src/renderer/components/output.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/output.tsx b/src/renderer/components/output.tsx index a4d52a3282..77369fc75d 100644 --- a/src/renderer/components/output.tsx +++ b/src/renderer/components/output.tsx @@ -1,3 +1,4 @@ +import { shell } from 'electron'; import { autorun } from 'mobx'; import { observer } from 'mobx-react'; import * as React from 'react'; @@ -113,7 +114,7 @@ export class Output extends React.Component {
{timestamp} - {text} + shell.openExternal(text)}>{text}
) : (