Fix recursion in NPM driver

main
Elbert Alias 5 years ago
parent 8b6050b06a
commit 141750821b

@ -245,7 +245,7 @@ class Driver {
browser.links, (results, link) => { browser.links, (results, link) => {
if ( if (
results results
&& Object.prototype.hasOwnProperty.call(results, 'push') && Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(results), 'push')
&& link.protocol && link.protocol
&& link.protocol.match(/https?:/) && link.protocol.match(/https?:/)
&& link.rel !== 'nofollow' && link.rel !== 'nofollow'