mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-28 20:47:01 +00:00
Update chrome.js
This commit is contained in:
parent
e4adea873a
commit
12be53ebb4
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user