Add try/catch in dom.js

main
Elbert Alias 3 years ago
parent 19822bcdf8
commit f977f42bf8

@ -17,6 +17,7 @@
postMessage({
wappalyzer: {
dom: technologies.reduce((technologies, { name, dom }) => {
try {
Object.keys(dom).forEach((selector) => {
let nodes = []
@ -53,6 +54,9 @@
})
})
})
} catch (error) {
// Fail quietly
}
return technologies
}, []),