Skip to content

Commit 929cc09

Browse files
committed
Hide Gitify if opening the window
1 parent 4de4f14 commit 929cc09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/js/utils/notifications.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const { remote } = require('electron');
2+
13
import { reOpenWindow, openExternalLink } from '../utils/comms';
24
import { generateGitHubWebUrl } from '../utils/helpers';
35

@@ -55,7 +57,10 @@ export default {
5557

5658
nativeNotification.onclick = function() {
5759
if (count === 1) {
60+
const appWindow = remote.getCurrentWindow();
5861
const url = generateGitHubWebUrl(notificationUrl);
62+
63+
appWindow.hide();
5964
openExternalLink(url);
6065
} else {
6166
reOpenWindow();

0 commit comments

Comments
 (0)