Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

Commit

Permalink
dont show notification when focused
Browse files Browse the repository at this point in the history
  • Loading branch information
gokberkakdeniz committed Jun 25, 2019
1 parent 8bbcabe commit cc3f8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/assets/js/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ global.Notification = function (title, options) {
options
})

if (store.get("desktopNotifications")) {
if (store.get("desktopNotifications") && !electron.getCurrentWindow().isFocused()) {
notifications.dequeue()

const notification = new OldNotification(title, options)
Expand Down

0 comments on commit cc3f8a6

Please sign in to comment.