Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Activate app on notificationClick
Browse files Browse the repository at this point in the history
  • Loading branch information
jwheare committed Sep 7, 2016
1 parent 3895f00 commit 77f453b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/render/notification.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var remote = require('electron').remote;

function setupNotifiationHandlder() {
document.addEventListener("DOMContentLoaded", function (event) {
SESSION.on('notificationClick', function () {
remote.app.emit('activate');
});
});
}

module.exports = setupNotifiationHandlder;
1 change: 1 addition & 0 deletions app/render/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ require('./focus')();
require('./zoom')();
require('./spellcheck')();
require('./irc-url')();
require('./notification')();

0 comments on commit 77f453b

Please sign in to comment.