浏览代码

change default user agent

Martin Smeeckaert 9 年之前
父节点
当前提交
2285c896d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/tools/phantomas/phantomasWrapper.js

+ 1 - 1
lib/tools/phantomas/phantomasWrapper.js

@@ -23,7 +23,7 @@ var PhantomasWrapper = function() {
             'engine': task.options.phantomasEngine || 'webkit',
             'timeout': task.options.timeout || 30,
             'js-deep-analysis': task.options.jsDeepAnalysis || false,
-            'user-agent': (task.options.device === 'desktop') ? 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36' : null,
+            'user-agent': (task.options.device === 'desktop') ? 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) YLT Chrome/27.0.1453.110 Safari/537.36' : null,
             'tablet': (task.options.device === 'tablet'),
             'phone': (task.options.device === 'phone'),
             'screenshot': task.options.screenshot || false,