Add isInstalled method to check extension existence

This commit is contained in:
SrGooglo 2025-04-10 14:37:55 +00:00
parent bdbd92a73c
commit 829e1bce7b

View File

@ -173,4 +173,10 @@ export default class ExtensionManager {
await this.load(extension.id)
}
}
isInstalled = async (id) => {
const manifest = await this.db.manifest.get(id)
return !!manifest
}
}