mirror of https://github.com/keeweb/keeweb.git
removed a manifest check
This commit is contained in:
parent
95d2731d13
commit
117955bcf9
|
@ -146,7 +146,7 @@ class ConfigLoader {
|
|||
if (Array.isArray(config.plugins)) {
|
||||
const pluginPromises: Promise<void>[] = [];
|
||||
for (const plugin of config.plugins as Record<string, unknown>[]) {
|
||||
if (typeof plugin.url === 'string' && typeof plugin.manifest === 'object') {
|
||||
if (typeof plugin.url === 'string') {
|
||||
const pluginPromise = PluginManager.installIfNew(
|
||||
plugin.url,
|
||||
plugin.manifest as PluginManifest,
|
||||
|
|
|
@ -54,7 +54,11 @@ class PluginManager extends Model {
|
|||
await this.saveState();
|
||||
}
|
||||
|
||||
installIfNew(url: string, expectedManifest: PluginManifest, skipSignatureValidation: boolean) {
|
||||
installIfNew(
|
||||
url: string,
|
||||
expectedManifest?: PluginManifest,
|
||||
skipSignatureValidation?: boolean
|
||||
) {
|
||||
const plugin = this.plugins.find((p) => p.url === url);
|
||||
if (plugin && plugin.status !== 'invalid') {
|
||||
return Promise.resolve();
|
||||
|
|
Loading…
Reference in New Issue