()
| 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) { |
no test coverage detected