ソースを参照

formatting

Former-commit-id: 15192d3712ad5b450983f1e2a26979d8d1ee6a27
Gildas 6 年 前
コミット
b385254381
1 ファイル変更1 行追加1 行削除
  1. 1 1
      cli/back-ends/webdriver-gecko.js

+ 1 - 1
cli/back-ends/webdriver-gecko.js

@@ -82,7 +82,7 @@ exports.getPageData = async options => {
 			await driver.sleep(3000);
 		}
 		await driver.get(options.url);
-		scripts = scripts.replace(/\n(this)\.([^ ]+) = (this)\.([^ ]+) \|\|/g, "\nwindow.$2 = window.$4 ||")
+		scripts = scripts.replace(/\n(this)\.([^ ]+) = (this)\.([^ ]+) \|\|/g, "\nwindow.$2 = window.$4 ||");
 		await driver.executeScript(scripts);
 		if (options.browserWaitUntil != "domcontentloaded") {
 			let scriptPromise;