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.
12 lines
454 B
TypeScript
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;
|