mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-29 19:03:42 +00:00
Update chrome.js
This commit is contained in:
parent
852365cc1e
commit
a5e50771b3
|
|
@ -70,7 +70,18 @@ var ChromeObject = function() {
|
|||
|
||||
this.clearProfile = function() {
|
||||
var FN = SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName + "\\" + this.profileName;
|
||||
while (FILE.folderExists(FN)) {
|
||||
try {
|
||||
return FILE.deleteFolder(FN);
|
||||
} catch (e) {
|
||||
console.warn("Can not clear the session! Resaon: " + e.message);
|
||||
console.warn("Retrying clear the profile...");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.clear = function() {
|
||||
return this.clearProfile();
|
||||
};
|
||||
|
||||
this.setUserDataDir = function(dirname) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user