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"); }