From 4ebc7113ab1af667f13f60700fb5a04fd7b5fd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 16 Nov 2024 19:10:03 +0100 Subject: [PATCH] main: Make notify() details optional again The parameter used to be optional until commit d54219c0982, but after GObjectifaction `undefined` is no longer interchangeable with `null` here. Restore the old behavior, as it's used by extensions (including one of our own templates). Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8068 Part-of: --- js/ui/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/main.js b/js/ui/main.js index 25c28b240..73980edb8 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -610,9 +610,9 @@ export function loadTheme() { /** * @param {string} msg A message - * @param {string} details Additional information + * @param {string=} details Additional information */ -export function notify(msg, details) { +export function notify(msg, details = null) { const source = MessageTray.getSystemSource(); const notification = new MessageTray.Notification({ source,