Fix small error that could block addon loading.
This commit is contained in:
parent
f41d699077
commit
b1e7daab59
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue