diff --git a/js/extensions/sharedInternals.js b/js/extensions/sharedInternals.js index 524ec3985..76f488b7f 100644 --- a/js/extensions/sharedInternals.js +++ b/js/extensions/sharedInternals.js @@ -28,7 +28,7 @@ export class ExtensionBase { const dirName = GLib.path_get_basename(path); const extension = this.lookupByUUID(dirName); - if (extension !== undefined) + if (extension !== null) return extension; } while (path !== '/');