Fix detections caching

main
Elbert Alias 4 years ago
parent 1a605c4171
commit 8b2696ddc7

@ -472,11 +472,11 @@ class Site {
} }
} }
this.onDetect(url, analyzeJs(js)) this.onDetect(analyzeJs(js))
this.onDetect( this.onDetect(
url,
analyze({ analyze({
url,
cookies, cookies,
html, html,
scripts, scripts,
@ -584,7 +584,7 @@ class Site {
await this.batch(links, depth, batch + 1) await this.batch(links, depth, batch + 1)
} }
onDetect(url, detections = [], language) { onDetect(detections = [], language) {
this.detections = this.detections.concat(detections) this.detections = this.detections.concat(detections)
this.detections.filter( this.detections.filter(

Loading…
Cancel
Save