mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
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.
16 lines
460 B
TypeScript
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;
|