Revemo always kana view

This commit is contained in:
2026-06-21 13:29:57 +03:00
parent ace3e89033
commit 60697aecb1
5 changed files with 53 additions and 27 deletions
+2
View File
@@ -45,6 +45,7 @@ export async function uploadDatabase(
console.log('[Sync] База данных успешно загружена.');
} catch (err) {
console.error('[Sync] Ошибка загрузки:', err);
console.log(err);
alert(`Ошибка загрузки: ${err instanceof Error ? err.message : String(err)}`);
throw err;
}
@@ -67,6 +68,7 @@ export async function downloadDatabase(
try {
// 1. GET-запрос
const url = `${apiBaseUrl.replace(/\/+$/, '')}/download/${encodeURIComponent(id)}`;
console.log(url);
const response = await fetch(url);
if (!response.ok) {