Browse Source

Update rambox-service-api.js

pull/1864/head
Simon Sassi 7 years ago committed by GitHub
parent
commit
74b93b6cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      resources/js/rambox-service-api.js

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

@ -38,7 +38,7 @@ Notification = function(title, options) {
ipcRenderer.sendToHost('rambox.showWindowAndActivateTab'); 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 rights rights! //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.addEventListener = function(a, b) {return true};
notification.attachEvent = function(a, b) {return true}; notification.attachEvent = function(a, b) {return true};
notification.addListener = function(a, b) {return true}; notification.addListener = function(a, b) {return true};

Loading…
Cancel
Save