mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
enable JS for screenshots
This commit is contained in:
parent
a1a7b9be30
commit
c9332ad648
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class ScreenshotWorker
|
|||
screenshot = Tempfile.new 'neocities_screenshot'
|
||||
screenshot.close
|
||||
|
||||
caps = Selenium::WebDriver::Remote::Capabilities.htmlunit javascript_enabled: false, takesScreenshot: true
|
||||
caps = Selenium::WebDriver::Remote::Capabilities.htmlunit javascript_enabled: true, takesScreenshot: true
|
||||
|
||||
driver = Selenium::WebDriver.for :remote, url: $config['phantomjs_url'][rand($config['phantomjs_url'].length)], desired_capabilities: caps
|
||||
driver.manage.window.resize_to 1280, 720
|
||||
|
|
Loading…
Add table
Reference in a new issue