Skip to content

Commit 35029ad

Browse files
committed
fix(browser): make sure that empty results array is still recognized
Otherwise empty array is treated as a single value, which causes issues down the road.
1 parent 3b854ad commit 35029ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class Browser {
152152
}
153153

154154
onResult (result) {
155-
if (result.length) {
155+
if (Array.isArray(result)) {
156156
result.forEach(this.onResult, this)
157157
return
158158
} else if (this.isNotConnected()) {

0 commit comments

Comments
 (0)