I have vars in my JavaScript script for a HTML website, and when I go into console on this website I can edit these vars. For example, I have a button which is collected from the HTML into the JavaScript which is disabled until a different var is true, but the user can just edit either the other var, or just do button.disabled = true
in the console.
I’m presuming there is a way to fix this, seeing as you can’t do this on normal websites.
1