MCPcopy Create free account
hub / github.com/error311/FileRise / refresh

Function refresh

public/js/adminPanel.js:993–1001  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

991 };
992
993 const refresh = async () => {
994 const r = await fetch(withBase('/api/admin/getConfig.php?ts=' + Date.now()), {
995 credentials: 'include',
996 cache: 'no-store',
997 headers: { 'Cache-Control': 'no-store' }
998 });
999 const next = await safeJson(r);
1000 renderAdminEncryptionSection({ config: next, dark });
1001 };
1002
1003 const genBtn = document.getElementById('frEncGenerateKeyBtn');
1004 if (genBtn && !genBtn.__wired) {

Callers 1

Calls 3

withBaseFunction · 0.85
safeJsonFunction · 0.70

Tested by

no test coverage detected