Skip to content
Snippets Groups Projects
Unverified Commit 3f9969ef authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Fix window/document focus event handler

parent a594eb21
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ define(function(require) {
// Hide notification favicon when switching back from
// another browser tab
$(document).on('focus', this.onDocumentShow.bind(this));
$(window).focus(this.onDocumentShow.bind(this));
$(document).on('click', this.onDocumentClick);
......@@ -120,6 +120,7 @@ define(function(require) {
Radio.ui.trigger('document:click', event);
},
onDocumentShow: function(e) {
console.error('SHOW');
e.preventDefault();
this.changeFavicon(OC.filePath('mail', 'img', 'favicon.png'));
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment