Skip to content

Commit 4324211

Browse files
committed
fix: dont return early in getElementsFromPage
1 parent ae1953c commit 4324211

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/webpage.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ export default class Webpage {
122122
/* istanbul ignore next */
123123
function (selector, fn, args) {
124124
var els = document.querySelectorAll(selector)
125-
if (!els || !els.length) {
126-
return []
127-
}
128-
129125
return (new (Function.bind.apply(Function, fn))()).apply(null, [Array.prototype.slice.call(els)].concat(args))
130126
},
131127
selector,

0 commit comments

Comments
 (0)