disable right click

pull/13/head
4yn 2022-02-07 11:55:08 +08:00
parent 331d23a674
commit 3ba7f2b8f2
1 changed files with 2 additions and 0 deletions

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);