@wailsio/runtime 3.0.0-alpha.4 → 3.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contextmenu.js +3 -1
- package/package.json +1 -1
- package/system.js +4 -0
package/contextmenu.js
CHANGED
|
@@ -11,6 +11,7 @@ The electron alternative for Go
|
|
|
11
11
|
/* jshint esversion: 9 */
|
|
12
12
|
|
|
13
13
|
import {newRuntimeCallerWithID, objectNames} from "./runtime";
|
|
14
|
+
import {IsDebug} from "./system";
|
|
14
15
|
|
|
15
16
|
const call = newRuntimeCallerWithID(objectNames.ContextMenu, '');
|
|
16
17
|
const ContextMenuOpen = 0;
|
|
@@ -47,8 +48,9 @@ function contextMenuHandler(event) {
|
|
|
47
48
|
This rule is inherited like normal CSS rules, so nesting works as expected
|
|
48
49
|
*/
|
|
49
50
|
function processDefaultContextMenu(event) {
|
|
51
|
+
|
|
50
52
|
// Debug builds always show the menu
|
|
51
|
-
if (
|
|
53
|
+
if (IsDebug()) {
|
|
52
54
|
return;
|
|
53
55
|
}
|
|
54
56
|
|
package/package.json
CHANGED