Remove Act, AutoUpdater, and Book IPC modules alongside associated database logic.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import axios from 'axios';
|
||||
import {fetch} from '@tauri-apps/plugin-http';
|
||||
import {configs, isDesktop} from '@/lib/configs';
|
||||
|
||||
interface CrashReportPayload {
|
||||
@@ -49,9 +49,10 @@ function getUserId(): string | undefined {
|
||||
|
||||
async function sendCrashReport(payload: CrashReportPayload): Promise<void> {
|
||||
try {
|
||||
await axios.post(configs.apiUrl + 'crash-report', payload, {
|
||||
await fetch(configs.apiUrl + 'crash-report', {
|
||||
method: 'POST',
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
timeout: 5000,
|
||||
body: JSON.stringify(payload),
|
||||
});
|
||||
} catch {
|
||||
// Silently fail — we can't crash while reporting a crash
|
||||
|
||||
Reference in New Issue
Block a user