extensionBase: Fix issue in lookupByURL()
The lookupByUUID() implementations in the subtypes return null when the lookup failed, not undefined. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2879>
This commit is contained in:
parent
a703e192ed
commit
09525ece8c
@ -28,7 +28,7 @@ export class ExtensionBase {
|
|||||||
|
|
||||||
const dirName = GLib.path_get_basename(path);
|
const dirName = GLib.path_get_basename(path);
|
||||||
const extension = this.lookupByUUID(dirName);
|
const extension = this.lookupByUUID(dirName);
|
||||||
if (extension !== undefined)
|
if (extension !== null)
|
||||||
return extension;
|
return extension;
|
||||||
} while (path !== '/');
|
} while (path !== '/');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user