From 12be53ebb4593f2595ab03ba13df2a91c93f759a Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 27 Jan 2022 14:19:04 +0900 Subject: [PATCH] Update chrome.js --- lib/chrome.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/chrome.js b/lib/chrome.js index d21b957..e5dbb4d 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -17,7 +17,7 @@ var pageEventId = 0; var ChromeObject = function(interfaces) { STD.EventableObject.apply(this, arguments); // set this object to `eventable` - this.interfaces = (typeof interfaces !== "undefined" ? interfaces : []); + this.interfaces = (typeof interfaces !== "undefined" ? interfaces : []); this.vendor = "Chrome"; this.workingDirectory = SYS.getEnvString("PROGRAMFILES") + "\\Google\\Chrome\\Application"; this.binPath = SYS.getEnvString("PROGRAMFILES") + "\\Google\\:installedDir\\Application\\chrome.exe"; @@ -55,11 +55,11 @@ var ChromeObject = function(interfaces) { this.create = function() { try { - if (this.interfaces.indexOf("autoitx") > -1) { - this.oAutoIt = AutoItX.create().getInterface(); - } else { - console.log("AutoItX is disabled"); - } + if (this.interfaces.indexOf("autoitx") > -1) { + this.oAutoIt = AutoItX.create().getInterface(); + } else { + console.log("AutoItX is disabled"); + } } catch (e) { console.log("AutoItX is disabled"); }