enable JS for screenshots

This commit is contained in:
Kyle Drake 2014-04-13 11:10:26 -07:00
parent a1a7b9be30
commit c9332ad648

View file

@ -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