mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
Update chrome.js
This commit is contained in:
parent
9bab66ab53
commit
0b4cacf417
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user