Removed alerts when right click on release.
This commit is contained in:
1 parent
366a0a8026
commit
0105218db9
1 file changed
-2
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user