disable right click

This commit is contained in:
4yn
2022-02-07 11:55:08 +08:00
parent 331d23a674
commit 3ba7f2b8f2

View File

@@ -47,6 +47,8 @@
// Receive events
onMount(async () => {
document.addEventListener("contextmenu", (event) => event.preventDefault());
// console.log(emit, listen);
await listen("showConfig", (event) => {
const payload: any = JSON.parse(event.payload as any);