mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
Removed alerts when right click on release.
This commit is contained in:
parent
366a0a8026
commit
0105218db9
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue