Skip to content

Commit

Permalink
fix(browser): make sure that empty results array is still recognized
Browse files Browse the repository at this point in the history
Otherwise empty array is treated as a single value, which causes issues down the road.
  • Loading branch information
devoto13 committed Apr 24, 2020
1 parent 3b854ad commit 35029ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class Browser {
}

onResult (result) {
if (result.length) {
if (Array.isArray(result)) {
result.forEach(this.onResult, this)
return
} else if (this.isNotConnected()) {
Expand Down

0 comments on commit 35029ad

Please sign in to comment.