This commit is contained in:
konrad 2017-09-01 20:29:53 +02:00
parent 355fea11e2
commit 52d43b4a19

View File

@ -13,7 +13,6 @@ import (
"github.com/asticode/go-astilectron" "github.com/asticode/go-astilectron"
"github.com/asticode/go-astilog" "github.com/asticode/go-astilog"
"github.com/pkg/errors" "github.com/pkg/errors"
"time"
) )
//Initialize Session //Initialize Session
@ -131,11 +130,13 @@ func main() {
// Create Frontend window // Create Frontend window
var wFrontend *astilectron.Window var wFrontend *astilectron.Window
if wFrontend, err = a.NewWindow("http://" + SiteConf.Interface, &astilectron.WindowOptions{ wFrontend, err = a.NewWindow("http://" + SiteConf.Interface, &astilectron.WindowOptions{
Center: astilectron.PtrBool(true), Center: astilectron.PtrBool(true),
Height: astilectron.PtrInt(800), Height: astilectron.PtrInt(800),
Width: astilectron.PtrInt(1200), Width: astilectron.PtrInt(1200),
}); err != nil { })
if err != nil {
fmt.Println(err) fmt.Println(err)
astilog.Fatal(errors.Wrap(err, "new window failed")) astilog.Fatal(errors.Wrap(err, "new window failed"))
} }