From 2aa9edeb8f13503cfbbc1f28bccfeb2458f6db99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 20 Mar 2016 14:55:19 +0200 Subject: [PATCH] Webkit2 engine does not exist anymore in phantomas 1.14 --- lib/tools/phantomas/phantomasWrapper.js | 5 ----- package.json | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/tools/phantomas/phantomasWrapper.js b/lib/tools/phantomas/phantomasWrapper.js index 7d51542..4fc9e38 100644 --- a/lib/tools/phantomas/phantomasWrapper.js +++ b/lib/tools/phantomas/phantomasWrapper.js @@ -118,11 +118,6 @@ var PhantomasWrapper = function() { async.retry(triesNumber, function(cb) { currentTry ++; - // Fix for https://github.com/gmetais/YellowLabTools/issues/114 - if (currentTry === 2 && options.engine === 'webkit2') { - debug('Launching a second try with the old webkit v1 engine'); - options.engine = 'webkit'; - } var process = phantomas(task.url, options, function(err, json, results) { var errorCode = err ? parseInt(err.message, 10) : null; diff --git a/package.json b/package.json index e59029c..07c772a 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "meow": "3.6.0", "minimize": "1.7.4", "parse-color": "1.0.0", - "phantomas": "1.14.0", + "phantomas": "git://github.com/gmetais/phantomas.git#fix-about-blank", "ps-node": "0.0.5", "q": "1.4.1", "request": "2.67.0",