Add appType to builds. Update server code to compile

This commit is contained in:
Lea Anthony
2021-01-26 06:40:41 +11:00
parent 02500e0930
commit 83d6dac7cf
4 changed files with 60 additions and 23 deletions

View File

@@ -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")