mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 12:15:02 -07:00
Add appType to builds. Update server code to compile
This commit is contained in:
@@ -12,8 +12,11 @@ import (
|
||||
func (a *App) Init() error {
|
||||
// Indicate debug mode
|
||||
a.debug = true
|
||||
// Enable dev tools
|
||||
a.options.DevTools = true
|
||||
|
||||
if a.appType == "desktop" {
|
||||
// Enable dev tools
|
||||
a.options.DevTools = true
|
||||
}
|
||||
|
||||
// Set log levels
|
||||
greeting := flag.String("loglevel", "debug", "Loglevel to use - Trace, Debug, Info, Warning, Error")
|
||||
|
||||
Reference in New Issue
Block a user