mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-30 13:37:03 +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) {
|
var ChromeObject = function(interfaces) {
|
||||||
STD.EventableObject.apply(this, arguments); // set this object to `eventable`
|
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.vendor = "Chrome";
|
||||||
this.workingDirectory = SYS.getEnvString("PROGRAMFILES") + "\\Google\\Chrome\\Application";
|
this.workingDirectory = SYS.getEnvString("PROGRAMFILES") + "\\Google\\Chrome\\Application";
|
||||||
this.binPath = SYS.getEnvString("PROGRAMFILES") + "\\Google\\:installedDir\\Application\\chrome.exe";
|
this.binPath = SYS.getEnvString("PROGRAMFILES") + "\\Google\\:installedDir\\Application\\chrome.exe";
|
||||||
|
@ -55,11 +55,11 @@ var ChromeObject = function(interfaces) {
|
||||||
|
|
||||||
this.create = function() {
|
this.create = function() {
|
||||||
try {
|
try {
|
||||||
if (this.interfaces.indexOf("autoitx") > -1) {
|
if (this.interfaces.indexOf("autoitx") > -1) {
|
||||||
this.oAutoIt = AutoItX.create().getInterface();
|
this.oAutoIt = AutoItX.create().getInterface();
|
||||||
} else {
|
} else {
|
||||||
console.log("AutoItX is disabled");
|
console.log("AutoItX is disabled");
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("AutoItX is disabled");
|
console.log("AutoItX is disabled");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user