fix(theme): update validation logic
This commit is contained in:
parent
26b7615f84
commit
c3cbc78e13
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ function processData(data: VendettaThemeManifest) {
|
|||
function validateTheme(themeJSON: any): boolean {
|
||||
if (typeof themeJSON !== "object" || themeJSON === null) return false;
|
||||
if (themeJSON.spec !== 2 && themeJSON.spec !== 3) return false;
|
||||
if (!themeJSON.main) return false;
|
||||
if (themeJSON.spec === 3 && !themeJSON.main) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue