[#6137] renew the superuser file token cache when clicking on the thumb preview or download link

This commit is contained in:
Gani Georgiev
2024-12-18 14:17:34 +02:00
parent ef0170cf0b
commit 803941705c
34 changed files with 188 additions and 152 deletions
@@ -57,8 +57,7 @@
try {
const token = await ApiClient.getSuperuserFileToken();
const url = ApiClient.backups.getDownloadURL(token, name);
CommonHelper.download(url);
CommonHelper.download(ApiClient.backups.getDownloadURL(token, name));
} catch (err) {
if (!err.isAbort) {
ApiClient.error(err);