1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #32488 from swrobel/patch-4

Only disable headless chrome gpu on Windows
This commit is contained in:
Rafael Mendonça França 2018-04-09 15:46:37 -04:00
commit 601e31b362
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948

View file

@ -33,7 +33,7 @@ module ActionDispatch
def headless_chrome_browser_options
options = Selenium::WebDriver::Chrome::Options.new
options.args << "--headless"
options.args << "--disable-gpu"
options.args << "--disable-gpu" if Gem.win_platform?
options
end