mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 05:31:03 +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.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\\:installedDir\\Application";
|
||||||
this.binPath = SYS.getEnvString("PROGRAMFILES") + "\\Google\\:installedDir\\Application\\chrome.exe";
|
this.binPath = SYS.getEnvString("PROGRAMFILES") + "\\Google\\:installedDir\\Application\\chrome.exe";
|
||||||
|
|
||||||
//this.processID = 0;
|
//this.processID = 0;
|
||||||
|
@ -86,7 +86,7 @@ var ChromeObject = function(interfaces) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.clearProfile = function() {
|
this.clearProfile = function() {
|
||||||
var FN = SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName + "\\" + this.profileName;
|
var FN = this.userDataDir;
|
||||||
while (FILE.folderExists(FN)) {
|
while (FILE.folderExists(FN)) {
|
||||||
try {
|
try {
|
||||||
return FILE.deleteFolder(FN);
|
return FILE.deleteFolder(FN);
|
||||||
|
@ -103,7 +103,7 @@ var ChromeObject = function(interfaces) {
|
||||||
|
|
||||||
this.setUserDataDir = function(dirname) {
|
this.setUserDataDir = function(dirname) {
|
||||||
if (dirname != null) {
|
if (dirname != null) {
|
||||||
this.userDataDir = dirname;
|
this.userDataDir = dirname + "\\" + this.profileName;
|
||||||
} else {
|
} else {
|
||||||
this.userDataDir = SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName;
|
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.AUTHOR = "abuse@catswords.net";
|
||||||
exports.global = global;
|
exports.global = global;
|
||||||
exports.require = global.require;
|
exports.require = global.require;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user