diff --git a/script.js b/script.js index 3909f57..1ce1a92 100644 --- a/script.js +++ b/script.js @@ -15,6 +15,8 @@ window.addEventListener('load', () => { deckName = document.querySelector('#card-container').getAttribute("data-deckName"); xhr.open("GET", "/deck/" + deckName + "/deck.json"); xhr.send(); + + window.addEventListener("contextmenu", event => event.preventDefault()); }); let cardInteract = interact('.card', {ignoreFrom: '.in-list'})