Update chrome.js

This commit is contained in:
Namhyeon Go 2022-05-10 13:41:42 +09:00 committed by GitHub
parent 0e3b3f50fe
commit 732797f0ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;