Closed zhenzi0322 closed 1 year ago
Since Eel uses a browser to render the website, I don't think there is any real way to completely prevent the user from accessing the source code. Still, if you want to stop the user from being able to use the F12 key specifically, you could do something like:
document.addEventListener("keydown", (event) => {
if (event.key == "F12") {
event.preventDefault();
}
})
How does eel prohibit f12 from viewing source code