Files
radicle-explorer/desktop/src/main.ts
T
Rūdolfs Ošiņš 244e2dc44c desktop: Write pending changes before the window closes
Views can hold back writes to batch them, which would be lost if the
window closed in the meantime. The first close is held until registered
views have flushed, writing locally without announcing, with a 5 second
fallback. On macOS, Quit goes through the same path instead of
terminating the app directly.
2026-11-06 18:21:33 +01:00

16 lines
460 B
TypeScript

import "overlayscrollbars/overlayscrollbars.css";
import { mount } from "svelte";
import App from "./App.svelte";
import { listenForClose } from "./lib/closeFlush";
import { disableDropNavigation } from "./lib/disableDropNavigation";
import { disableNativeContextMenu } from "./lib/disableNativeContextMenu";
const app = mount(App, { target: document.body });
disableNativeContextMenu();
disableDropNavigation();
void listenForClose();
export default app;