Update chrome.js

This commit is contained in:
Namhyeon Go 2022-01-27 14:19:04 +09:00 committed by GitHub
parent e4adea873a
commit 12be53ebb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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