diff --git a/contrib/ui/mesh-ui/webview.go b/contrib/ui/mesh-ui/webview.go index 8daf311a..a3ddf8f4 100755 --- a/contrib/ui/mesh-ui/webview.go +++ b/contrib/ui/mesh-ui/webview.go @@ -20,8 +20,6 @@ import ( "github.com/RiV-chain/RiV-mesh/src/admin" ) -var riv_ctrl_path string - func main() { debug := true w := webview.New(debug) diff --git a/contrib/ui/mesh-ui/webview_other.go b/contrib/ui/mesh-ui/webview_other.go index 223bef3f..782e0954 100644 --- a/contrib/ui/mesh-ui/webview_other.go +++ b/contrib/ui/mesh-ui/webview_other.go @@ -7,6 +7,8 @@ import ( "os/exec" ) +var riv_ctrl_path string + func run_command(command string) []byte { args := []string{"-json", command} cmd := exec.Command(riv_ctrl_path, args...) diff --git a/contrib/ui/mesh-ui/webview_windows.go b/contrib/ui/mesh-ui/webview_windows.go index cbe70c18..d023fdc2 100755 --- a/contrib/ui/mesh-ui/webview_windows.go +++ b/contrib/ui/mesh-ui/webview_windows.go @@ -8,6 +8,8 @@ import ( //"syscall" ) +var riv_ctrl_path string + func run_command(command string) []byte { args := []string{"-json", command} cmd := exec.Command(riv_ctrl_path, args...)