Optimize
This commit is contained in:
parent
355fea11e2
commit
52d43b4a19
7
main.go
7
main.go
|
@ -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"))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue