This commit is contained in:
konrad 2017-09-01 20:29:53 +02:00
parent 355fea11e2
commit 52d43b4a19
1 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,6 @@ import (
"github.com/asticode/go-astilectron"
"github.com/asticode/go-astilog"
"github.com/pkg/errors"
"time"
)
//Initialize Session
@ -131,11 +130,13 @@ func main() {
// Create Frontend 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),
Height: astilectron.PtrInt(800),
Width: astilectron.PtrInt(1200),
}); err != nil {
})
if err != nil {
fmt.Println(err)
astilog.Fatal(errors.Wrap(err, "new window failed"))
}