Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Disable right click
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Sep 6, 2022
1 parent 484cfaf commit 02a4fec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interface/layout/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ window.appWindow.onCloseRequested((event) => {
}
})

// Disable right click
document.addEventListener("contextmenu", (event) => {
event.preventDefault()
})

// Create svelte app
const app = new App({
target: document.body,
Expand Down

0 comments on commit 02a4fec

Please sign in to comment.