Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
build
.env
dist
example-config
example-config
.fallow
8 changes: 4 additions & 4 deletions apps/finicky/src/config/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ type VM struct {

// ConfigOptions holds the values of all runtime config options.
type ConfigOptions struct {
KeepRunning bool
HideIcon bool
LogRequests bool
CheckForUpdates bool
KeepRunning bool `json:"keepRunning"`
HideIcon bool `json:"hideIcon"`
LogRequests bool `json:"logRequests"`
CheckForUpdates bool `json:"checkForUpdates"`
}

// ConfigState represents the current state of the configuration
Expand Down
10 changes: 4 additions & 6 deletions apps/finicky/src/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ var file *os.File
type windowWriter struct{}

func (w *windowWriter) Write(p []byte) (n int, err error) {
// Remove trailing newline if present
msg := string(p)
if len(msg) > 0 && msg[len(msg)-1] == '\n' {
msg = msg[:len(msg)-1]
payload := p
if len(payload) > 0 && payload[len(payload)-1] == '\n' {
payload = payload[:len(payload)-1]
}

window.SendMessageToWebView("log", msg)
window.BroadcastSSERaw("log", payload)
return len(p), nil
}

Expand Down
Loading
Loading