Files
WhispAssist/src/main.ts
T
iamdoubz 8906f8c8ed chore(ui): disable the default WebView right-click menu
Back/Forward/Reload/Inspect doesn't belong in a native-feeling desktop
app. Disabled app-wide for now, per explicit instruction -- a
WhispAssist-specific context menu is a deferred follow-up, not decided
against.
2026-07-10 22:08:25 -05:00

12 lines
454 B
TypeScript

import App from "./App.svelte";
import { mount } from "svelte";
// The WebView2 default right-click menu (Back/Forward/Reload/Inspect) doesn't
// belong in a native-feeling desktop app — disabled app-wide until/unless a
// WhispAssist-specific context menu replaces it (see project memory).
document.addEventListener("contextmenu", (e) => e.preventDefault());
const app = mount(App, { target: document.getElementById("app")! });
export default app;