relaxed sourceCode test even more

This commit is contained in:
tophf 2021-12-22 20:26:41 +03:00
parent 8d806d7588
commit b88b71b9c7

View File

@ -129,7 +129,7 @@ async function importFromString(jsonString) {
typeof item !== 'object' || ( typeof item !== 'object' || (
isEmptyObj(item.usercssData) isEmptyObj(item.usercssData)
? !styleJSONseemsValid(item) ? !styleJSONseemsValid(item)
: !item.sourceCode || typeof item.sourceCode !== 'string' : typeof item.sourceCode !== 'string'
) )
) { ) {
stats.invalid.names.push(`#${index}: ${limitString(item && item.name || '')}`); stats.invalid.names.push(`#${index}: ${limitString(item && item.name || '')}`);