Skip to content

Commit

Permalink
fix(webdriver) make screen number detection more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Jun 11, 2024
1 parent 1b3066c commit dff6a75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spot-webdriver/screen-info/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ module.exports = {
throw new Error(`No screen count command for env ${process.platform}`);
}

return command();
try {
return command();
} catch(e) {
return 1;
}
}
};

0 comments on commit dff6a75

Please sign in to comment.