notificationDaemon: Avoid access to undefined property
Avoid a warning when assigning from an undefined property by making sure to pass a proper null value instead. https://bugzilla.gnome.org/show_bug.cgi?id=781471
This commit is contained in:
parent
b73c96d14c
commit
d815c5dfc0
@ -186,7 +186,8 @@ const FdoNotificationDaemon = new Lang.Class({
|
|||||||
return source;
|
return source;
|
||||||
}
|
}
|
||||||
|
|
||||||
source = new FdoNotificationDaemonSource(title, pid, sender, ndata ? ndata.hints['desktop-entry'] : null);
|
let appId = ndata ? ndata.hints['desktop-entry'] || null : null;
|
||||||
|
source = new FdoNotificationDaemonSource(title, pid, sender, appId);
|
||||||
|
|
||||||
this._sources.push(source);
|
this._sources.push(source);
|
||||||
source.connect('destroy', Lang.bind(this, function() {
|
source.connect('destroy', Lang.bind(this, function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user