Skip to content

Commit

Permalink
Make WSL detection more generic (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbclark authored Dec 18, 2020
1 parent 99ce9b9 commit 5e1f923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webdrivers/system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def platform

# @return [TrueClass, FalseClass]
def wsl?
platform == 'linux' && File.open('/proc/version').read.include?('Microsoft')
platform == 'linux' && File.open('/proc/version').read.downcase.include?('microsoft')
end

# @param [String] path
Expand Down

0 comments on commit 5e1f923

Please sign in to comment.