From feafd8d17f54b264ebed344705045beeb7a76f90 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(); }