Embedded go-webview-selector

This commit is contained in:
Mihail Slobodyanuk 2022-12-19 12:45:35 +02:00
parent e7ea9a9b1e
commit 99e7bfa71c
6 changed files with 78 additions and 7 deletions

View file

@ -5,7 +5,6 @@ import (
"os"
"github.com/RiV-chain/RiV-mesh/src/defaults"
"github.com/jchv/go-webview-selector"
"github.com/docopt/docopt-go"
)
@ -37,10 +36,10 @@ func main() {
Console(false)
}
debug := true
w := webview.New(debug)
w := New(debug)
defer w.Destroy()
w.SetTitle("RiV-mesh")
w.SetSize(690, 920, webview.HintFixed)
w.SetSize(690, 920, HintFixed)
if confui.IndexHtml == "" {
confui.IndexHtml = defaults.GetHttpEndpoint("http://localhost:19019")