From 9121b3ad2fe0567c0983b054c9730705ef649276 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 17 Aug 2021 05:35:45 +0900 Subject: [PATCH] Update chrome.js --- lib/chrome.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);