浏览代码

Removed alerts when right click on release.

Benjamin Lemelin 3 年之前
父节点
当前提交
0105218db9
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      packages/desktop/src/lib.rs

+ 0 - 2
packages/desktop/src/lib.rs

@@ -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;
                         });
                         }