Prevent multiple DNS lookups

main
Elbert Alias 4 years ago
parent a797e4e0f1
commit 1d2324e760

@ -639,7 +639,7 @@ class Site {
}
// DNS
if (!this.dns.length) {
if (!Object.keys(this.dns).length) {
const records = {}
const resolve = (func, hostname) => {
return this.promiseTimeout(
@ -722,9 +722,8 @@ class Site {
) &&
link.protocol &&
link.protocol.match(/https?:/) &&
link.rel !== 'nofollow' &&
link.hostname === url.hostname &&
extensions.test(link.pathname)
extensions.test(link.pathname.slice(-5))
) {
results.push(new URL(link.href.split('#')[0]))
}

@ -79,10 +79,10 @@ const Driver = {
'https://www.wappalyzer.com/installed/?utm_source=installed&utm_medium=extension&utm_campaign=wappalyzer'
)
} else if (version !== previous && upgradeMessage) {
// open(
// `https://www.wappalyzer.com/upgraded/?utm_source=upgraded&utm_medium=extension&utm_campaign=wappalyzer`,
// false
// )
open(
`https://www.wappalyzer.com/upgraded/?utm_source=upgraded&utm_medium=extension&utm_campaign=wappalyzer`,
false
)
}
await setOption('version', version)

Loading…
Cancel
Save