From 4105472d3c52b703222b3e116663bd69258ad9fc Mon Sep 17 00:00:00 2001 From: FinnHornhoover Date: Mon, 13 Nov 2023 01:46:23 +0300 Subject: [PATCH] added hash check when cache location is changed --- assets/js/server-selector.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/server-selector.js b/assets/js/server-selector.js index 6a1f1b0..75bde75 100644 --- a/assets/js/server-selector.js +++ b/assets/js/server-selector.js @@ -309,6 +309,9 @@ function editConfig() { ) ? dirInput : offlineRoot; remotefs.writeFileSync(configPath, JSON.stringify(jsonToModify, null, 4)); + + if (jsonToModify["offline-cache-location"] !== offlineRoot) + handleCache("hash-check"); loadConfig(); }