Skip to content

Commit

Permalink
feat: disable right click
Browse files Browse the repository at this point in the history
  • Loading branch information
FliPPeDround committed Dec 10, 2024
1 parent 0aa860f commit 083ec8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/client/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ const app = createApp(App)
const router = createRouter({
history: createMemoryHistory(),
})
console.log(router)

app.use(router)
app.mount('#app')

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

0 comments on commit 083ec8c

Please sign in to comment.