mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-15 06:01:04 +00:00
Update chrome.js
This commit is contained in:
parent
c9b5125b20
commit
9121b3ad2f
|
@ -55,6 +55,11 @@ var ChromeObject = function() {
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.clearProfile = function() {
|
||||||
|
var FN = SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName + "\\" + this.profileName;
|
||||||
|
return FILE.deleteFolder(FN);
|
||||||
|
};
|
||||||
|
|
||||||
this.setUserDataDir = function(dirname) {
|
this.setUserDataDir = function(dirname) {
|
||||||
if (dirname != null) {
|
if (dirname != null) {
|
||||||
this.userDataDir = dirname;
|
this.userDataDir = dirname;
|
||||||
|
@ -148,11 +153,6 @@ var ChromeObject = function() {
|
||||||
this.inPrivate = flag;
|
this.inPrivate = flag;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.clearCacheDirectory = function() {
|
|
||||||
var FN = SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName + "\\" + this.profileName + "\\Cache";
|
|
||||||
return FILE.deleteFolder(FN);
|
|
||||||
};
|
|
||||||
|
|
||||||
this.open = function(url) {
|
this.open = function(url) {
|
||||||
this.setProfile(this.profileName, this.installedDir);
|
this.setProfile(this.profileName, this.installedDir);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user