by divbzero · 4y ago · 0 comments
And a rather modern approach for doing it:
<script>
export default {
mounted() {
document.addEventListener("contextmenu", event => {
event.preventDefault()
alert("Right click is disabled!!!")
})
}
}
</script>
https://github.com/SaraVieira/make-frontend-shit-again/blob/...