Fix small error that could block addon loading.

This commit is contained in:
Jean Ouina 2020-08-07 12:49:05 +02:00
parent f41d699077
commit b1e7daab59
3 changed files with 12 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -119,7 +119,11 @@ export function checkHash(hash, data, filename, resultCallback, removeCallback){
cache[hash] = result
resultCallback(result)
}).catch(console.error)
}).catch((err) => {
console.error(`Could not read from github. ${err}`)
if(filename.endsWith(".theme.css"))return removeCallback(hash)
checkViruses(hash, data, resultCallback, removeCallback, filename)
})
}else{
const result = cache[hash]