From f19cc528d4fbeb1c4ddde9470c844420317fa12c Mon Sep 17 00:00:00 2001
From: Lea Anthony
Date: Wed, 20 Mar 2024 21:18:46 +1100
Subject: [PATCH] Fix context menu example
---
v3/examples/contextmenus/assets/index.html | 23 +++++++++++++++++++---
v3/internal/runtime/runtime_prod.go | 2 +-
2 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/v3/examples/contextmenus/assets/index.html b/v3/examples/contextmenus/assets/index.html
index 5994f4f2d..23224084d 100644
--- a/v3/examples/contextmenus/assets/index.html
+++ b/v3/examples/contextmenus/assets/index.html
@@ -3,16 +3,33 @@
Title
-
+
+
Context Menu Demo
You need to run this example in production for it to work :
-
go run -tags production .
-
+go run -tags production .
+
1
diff --git a/v3/internal/runtime/runtime_prod.go b/v3/internal/runtime/runtime_prod.go
index 5fdae3eae..ec3613551 100644
--- a/v3/internal/runtime/runtime_prod.go
+++ b/v3/internal/runtime/runtime_prod.go
@@ -5,4 +5,4 @@ package runtime
import "fmt"
import goruntime "runtime"
-var environment = fmt.Sprintf(`window._wails.environment={"OS":"%s","Arch":"%s","Debug":true};`, goruntime.GOOS, goruntime.GOARCH)
+var environment = fmt.Sprintf(`window._wails.environment={"OS":"%s","Arch":"%s","Debug":false};`, goruntime.GOOS, goruntime.GOARCH)