fix addon certifier thing
This commit is contained in:
parent
b592c7162d
commit
995824fcd5
File diff suppressed because one or more lines are too long
|
@ -119,7 +119,7 @@ export function checkHash(hash, data, filename, resultCallback, removeCallback){
|
|||
}
|
||||
}
|
||||
|
||||
export function processFile(__path, resultCallback, removeCallback){
|
||||
export function processFile(__path, resultCallback, removeCallback = () => {}){
|
||||
const hash = crypto.createHash("sha256")
|
||||
let data = Buffer.alloc(0)
|
||||
|
||||
|
@ -131,6 +131,8 @@ export function processFile(__path, resultCallback, removeCallback){
|
|||
|
||||
hashToUrl[hashResult] = __path
|
||||
|
||||
console.log(arguments)
|
||||
|
||||
checkHash(hashResult, data, basename(__path), resultCallback, removeCallback)
|
||||
})
|
||||
}
|
||||
|
|
|
@ -197,8 +197,8 @@ export default class V2C_PluginCard extends BDV2.reactComponent {
|
|||
if(this.unmounted)return
|
||||
this.setState({
|
||||
isTrusted: !result.suspect
|
||||
}, () => {})
|
||||
})
|
||||
})
|
||||
}, () => {})
|
||||
}else{
|
||||
if(this.state.isTrusted){
|
||||
style.borderColor = "#4087ed"
|
||||
|
|
Loading…
Reference in New Issue