relaxed sourceCode test even more
This commit is contained in:
parent
8d806d7588
commit
b88b71b9c7
|
@ -129,7 +129,7 @@ async function importFromString(jsonString) {
|
|||
typeof item !== 'object' || (
|
||||
isEmptyObj(item.usercssData)
|
||||
? !styleJSONseemsValid(item)
|
||||
: !item.sourceCode || typeof item.sourceCode !== 'string'
|
||||
: typeof item.sourceCode !== 'string'
|
||||
)
|
||||
) {
|
||||
stats.invalid.names.push(`#${index}: ${limitString(item && item.name || '')}`);
|
||||
|
|
Loading…
Reference in New Issue
Block a user