messageTray: Only take params in Notification
constructor
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3173>
This commit is contained in:

committed by
Florian Müllner

parent
251a5e9d20
commit
d54219c098
@@ -56,8 +56,10 @@ export async function run() {
|
||||
source.connect('notification-request-banner',
|
||||
() => Scripting.scriptEvent('notificationShowDone'));
|
||||
|
||||
const notification = new MessageTray.Notification(source,
|
||||
'A test notification');
|
||||
const notification = new MessageTray.Notification({
|
||||
source,
|
||||
title: 'A test notification',
|
||||
});
|
||||
source.addNotification(notification);
|
||||
await Scripting.sleep(400);
|
||||
|
||||
|
Reference in New Issue
Block a user