mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 08:55:14 +00:00
Update chrome.js
This commit is contained in:
parent
0e3b3f50fe
commit
732797f0ea
|
@ -38,7 +38,6 @@ var ChromeObject = function(interfaces) {
|
|||
|
||||
// user agent
|
||||
this.userAgent = null;
|
||||
//this.userAgent = "WelsonJS/0.2.3-dev (https://github.com/gnh1201/welsonjs)";
|
||||
this.userAgents = [];
|
||||
|
||||
// dependencies
|
||||
|
@ -1199,6 +1198,16 @@ var ChromeObject = function(interfaces) {
|
|||
this.workingDirectory = SYS.getEnvString("PROGRAMFILES") + "\\Google\\Chrome\\Application";
|
||||
this.binPath = SYS.getEnvString("PROGRAMFILES") + "\\Google\\:installedDir\\Application\\chrome.exe";
|
||||
break;
|
||||
|
||||
case "chromium":
|
||||
this.workingDirectory = SYS.getEnvString("LOCALAPPDATA") + "\\Chromium\\Application";
|
||||
this.binPath = SYS.getEnvString("LOCALAPPDATA") + "\\Chromium\\Application\\chrome.exe";
|
||||
break;
|
||||
|
||||
case "opera":
|
||||
this.workingDirectory = SYS.getEnvString("LOCALAPPDATA") + "\\Programs\\Opera";
|
||||
this.binPath = SYS.getEnvString("LOCALAPPDATA") + "\\Programs\\Opera\\opera.exe";
|
||||
break;
|
||||
}
|
||||
|
||||
return this;
|
||||
|
@ -1303,6 +1312,6 @@ exports.startDebugInPrivate = function(url, proxy, profileName, debuggingPort, i
|
|||
;
|
||||
};
|
||||
|
||||
exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.3";
|
||||
exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.4";
|
||||
exports.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
Loading…
Reference in New Issue
Block a user