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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3548>
This commit is contained in:
parent
7a4c971831
commit
4ebc7113ab
@ -610,9 +610,9 @@ export function loadTheme() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} msg A message
|
* @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 source = MessageTray.getSystemSource();
|
||||||
const notification = new MessageTray.Notification({
|
const notification = new MessageTray.Notification({
|
||||||
source,
|
source,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user