Removed alerts when right click on release.

This commit is contained in:
Benjamin Lemelin 2022-04-21 15:44:43 -04:00
parent 366a0a8026
commit 0105218db9

View file

@ -189,12 +189,10 @@ pub fn launch_with_props<P: 'static + Send>(
r#"
if (document.addEventListener) {
document.addEventListener('contextmenu', function(e) {
alert("You've tried to open context menu");
e.preventDefault();
}, false);
} else {
document.attachEvent('oncontextmenu', function() {
alert("You've tried to open context menu");
window.event.returnValue = false;
});
}