1
0
mirror of https://github.com/4yn/slidershim.git synced 2024-11-24 05:50:12 +01:00

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