diff --git a/lib/client/dom.js b/lib/client/dom.js index d53667b4..c08159f2 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -655,12 +655,17 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; }, window); this.send = function(msg) { - var notify, granted = Notify.check(); + var notify, + focus = window.focus.bind(window), + granted = Notify.check(); - if (granted && Show) + if (granted && Show) { notify = new Notification(msg, { icon: '/img/favicon/favicon-notify.png', }); + + Events.addClick(focus, notify); + } }; this.check = function () {