Update chrome.js

This commit is contained in:
Namhyeon Go 2024-04-24 03:28:57 +09:00 committed by GitHub
parent 9bab66ab53
commit 0b4cacf417
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ var ChromeObject = function(interfaces) {
this.interfaces = (typeof interfaces !== "undefined" ? interfaces : []);
this.vendor = "Chrome";
this.workingDirectory = SYS.getEnvString("PROGRAMFILES") + "\\Google\\Chrome\\Application";
this.workingDirectory = SYS.getEnvString("PROGRAMFILES") + "\\Google\\:installedDir\\Application";
this.binPath = SYS.getEnvString("PROGRAMFILES") + "\\Google\\:installedDir\\Application\\chrome.exe";
//this.processID = 0;
@ -86,7 +86,7 @@ var ChromeObject = function(interfaces) {
};
this.clearProfile = function() {
var FN = SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName + "\\" + this.profileName;
var FN = this.userDataDir;
while (FILE.folderExists(FN)) {
try {
return FILE.deleteFolder(FN);
@ -103,7 +103,7 @@ var ChromeObject = function(interfaces) {
this.setUserDataDir = function(dirname) {
if (dirname != null) {
this.userDataDir = dirname;
this.userDataDir = dirname + "\\" + this.profileName;
} else {
this.userDataDir = SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName;
}
@ -1405,7 +1405,7 @@ exports.startDebugInPrivate = function(url, proxy, profileName, debuggingPort, i
;
};
exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.4.6";
exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.4.7";
exports.AUTHOR = "abuse@catswords.net";
exports.global = global;
exports.require = global.require;