Browse Source

Merge pull request #1864 from maxerbox/patch-3

Fixed issue with gmail and notifications
pull/1922/head
Ramiro Saenz 7 years ago committed by GitHub
parent
commit
73f4e1fb90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      resources/js/rambox-service-api.js

5
resources/js/rambox-service-api.js

@ -37,6 +37,11 @@ Notification = function(title, options) {
notification.addEventListener('click', function() {
ipcRenderer.sendToHost('rambox.showWindowAndActivateTab');
});
//It seems that gmail is checking if such event handler func are available. Just remplacing them by a void function that is always returning true is making the thing right!
notification.addEventListener = function(a, b) {return true};
notification.attachEvent = function(a, b) {return true};
notification.addListener = function(a, b) {return true};
return notification;
}

Loading…
Cancel
Save