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

Commit 77f453b

Browse files
committed
Activate app on notificationClick
1 parent 3895f00 commit 77f453b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

app/render/notification.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var remote = require('electron').remote;
2+
3+
function setupNotifiationHandlder() {
4+
document.addEventListener("DOMContentLoaded", function (event) {
5+
SESSION.on('notificationClick', function () {
6+
remote.app.emit('activate');
7+
});
8+
});
9+
}
10+
11+
module.exports = setupNotifiationHandlder;

app/render/preload.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ require('./focus')();
1111
require('./zoom')();
1212
require('./spellcheck')();
1313
require('./irc-url')();
14+
require('./notification')();

0 commit comments

Comments
 (0)