From 38e9ac6a3a14c4447296c5c09c7f29b284d65f8d Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Wed, 17 Oct 2018 16:06:09 -0300 Subject: [PATCH] Removed unused params --- resources/js/rambox-service-api.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/js/rambox-service-api.js b/resources/js/rambox-service-api.js index 16d5f9c1..1acbc715 100644 --- a/resources/js/rambox-service-api.js +++ b/resources/js/rambox-service-api.js @@ -37,11 +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}; + notification.addEventListener = function() {return true}; + notification.attachEvent = function() {return true}; + notification.addListener = function() {return true}; return notification; }