From fcd41e604d2b9aabf1e86cf8f47a1b43c482240f Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Sun, 5 Apr 2020 12:03:31 -0400 Subject: [PATCH] Use new showNotification method --- utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.js b/utils.js index 16d2742..6757f77 100644 --- a/utils.js +++ b/utils.js @@ -472,6 +472,7 @@ var getPanelGhost = function() { var notify = function(text, iconName, action, isTransient) { let source = new MessageTray.SystemNotificationSource(); let notification = new MessageTray.Notification(source, 'Dash to Panel', text); + let notifyFunc = source.showNotification || source.notify; if (iconName) { source.createIcon = function() { @@ -490,7 +491,7 @@ var notify = function(text, iconName, action, isTransient) { Main.messageTray.add(source); notification.setTransient(isTransient); - source.notify(notification); + notifyFunc.call(source, notification); }; /*