Skip to content

Commit

Permalink
app: Remove shell usage in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Dec 30, 2020
1 parent f6c5ce1 commit 5cc18fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderer/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';
import {Save} from 'react-feather';
import styled from '@emotion/styled';
import {shell} from 'electron';

import Logo from 'src/shared/components/Logo';
import useRelease from 'src/utils/useLatestRelease';
Expand All @@ -18,7 +17,7 @@ const Footer = () => {
process.env.RELEASE !== latestRelease.name;

const newVersion = latestRelease && hasNewVersion && (
<NewVersionButton onClick={() => shell.openExternal(latestRelease.html_url)}>
<NewVersionButton onClick={() => location.assign(latestRelease.html_url)}>
<Save size="1rem" /> {latestRelease.name} available
</NewVersionButton>
);
Expand Down

0 comments on commit 5cc18fb

Please sign in to comment.