mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-01 02:05:06 -04:00
Refactor cache handling for plugins: update pluginsData initialization and improve fetch logic; enhance UI tests for translation loading
This commit is contained in:
1 parent
268347e187
commit
35b19cbb51
3 files changed
+41
-18
No files matched your search
@@ -312,7 +312,7 @@ async function getData() {
|
||||
// module-level fetchJson defined in cache.js, which returns res['data'] and
|
||||
// is used by cachePluginStrings() during app initialization.
|
||||
async function fetchPluginJson(filename) {
|
||||
const response = await fetch(`php/server/query_json.php?file=${filename}`);
|
||||
const response = await fetch(`php/server/query_json.php?file=${encodeURIComponent(filename)}&nocache=${Date.now()}`);
|
||||
if (!response.ok) throw new Error(`Failed to load ${filename}`);
|
||||
return await response.json();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user