From d8b62cff530b1be207278a319f1989d45f5815df Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 28 Apr 2021 01:53:12 +0800 Subject: [PATCH] fix: incorrect sanity check for theme plugin (#2205) --- src/api/web/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/web/index.ts b/src/api/web/index.ts index 8536632bc..eab763ed5 100644 --- a/src/api/web/index.ts +++ b/src/api/web/index.ts @@ -19,7 +19,7 @@ export function loadTheme(config) { config.theme, {}, function (plugin) { - return _.isString(plugin); + return plugin.staticPath && plugin.manifest && plugin.manifestFiles; }, 'verdaccio-theme' )