Add some tweaks to Plugin Scanner

This commit is contained in:
smartfridge 2021-06-16 19:00:09 +02:00
parent 807f0e9003
commit 8d7bcfd360
1 changed files with 2 additions and 1 deletions

View File

@ -79,6 +79,7 @@ export function checkViruses(hash, data, resultCallback, removeCallback, filenam
const scrpt = removeComment === 1 ? no_comments : data
if(test.exec(scrpt)){
isHarmful = threats[type]
Utils.showToast(`${hashToUrl[hash].split("/").pop()} failed at test`, test, ". Marked as", threats[type])
console.log(`${hashToUrl[hash].split("/").pop()} failed at test`, test, ". Marked as", threats[type])
break
}
@ -93,7 +94,7 @@ export function checkViruses(hash, data, resultCallback, removeCallback, filenam
hash: hash,
filename
}
Utils.showToast(`Found potentially dangerous ${cache[hash].type.toLowerCase()}: ${cache[hash].name}`)
console.log(`Found potentially dangerous ${cache[hash].type.toLowerCase()}: ${cache[hash].name}`)
resultCallback(cache[hash])