Browse Source

Webkit2 engine does not exist anymore in phantomas 1.14

Gaël Métais 9 years ago
parent
commit
2aa9edeb8f
2 changed files with 1 additions and 6 deletions
  1. 0 5
      lib/tools/phantomas/phantomasWrapper.js
  2. 1 1
      package.json

+ 0 - 5
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;

+ 1 - 1
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",