diff --git a/lib/chrome.js b/lib/chrome.js index 6a8d929..409ee9f 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -55,6 +55,11 @@ var ChromeObject = function() { return this; }; + this.clearProfile = function() { + var FN = SHELL.getPathOfMyDocuments() + "\\UserData_Chrome_" + this.profileName + "\\" + this.profileName; + return FILE.deleteFolder(FN); + }; + this.setUserDataDir = function(dirname) { if (dirname != null) { this.userDataDir = dirname; @@ -148,11 +153,6 @@ var ChromeObject = function() { this.inPrivate = flag; 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.setProfile(this.profileName, this.installedDir);