Skip to content

Commit

Permalink
fix: onbeforeunload triggered for link click (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored Apr 12, 2021
1 parent 5fb0b90 commit 607a137
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/components/output.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { shell } from 'electron';
import { autorun } from 'mobx';
import { observer } from 'mobx-react';
import * as React from 'react';
Expand Down Expand Up @@ -113,7 +114,7 @@ export class Output extends React.Component<CommandsProps> {
<div key={`${entry.timestamp}--${index}--${lineIndex}`}>
<span style={style} className="output-message">
{timestamp}
<a href={text}>{text}</a>
<a onClick={() => shell.openExternal(text)}>{text}</a>
</span>
</div>
) : (
Expand Down

0 comments on commit 607a137

Please sign in to comment.