()
| 3185 | setCryptoUiMinimized(!!minimized); |
| 3186 | |
| 3187 | const tickOnce = async () => { |
| 3188 | const resp = await fetchWithCsrf(withBase('/api/folder/encryptionJobTick.php'), { |
| 3189 | method: 'POST', |
| 3190 | headers: { 'Content-Type': 'application/json' }, |
| 3191 | body: JSON.stringify({ jobId, maxFiles: 1 }) |
| 3192 | }); |
| 3193 | return safeJson(resp); |
| 3194 | }; |
| 3195 | |
| 3196 | const statusOnce = async () => { |
| 3197 | const resp = await fetch(withBase(`/api/folder/encryptionJobStatus.php?jobId=${encodeURIComponent(jobId)}`), { credentials: 'include' }); |
no test coverage detected