chore(webview): align console buffers with RFC defaults
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
b993fc18f3
commit
e6a7ecf4f5
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ type consoleHandlerRegistration struct {
|
||||||
func NewConsoleWatcher(wv *Webview) *ConsoleWatcher {
|
func NewConsoleWatcher(wv *Webview) *ConsoleWatcher {
|
||||||
cw := &ConsoleWatcher{
|
cw := &ConsoleWatcher{
|
||||||
wv: wv,
|
wv: wv,
|
||||||
messages: make([]ConsoleMessage, 0, 100),
|
messages: make([]ConsoleMessage, 0, 1000),
|
||||||
filters: make([]ConsoleFilter, 0),
|
filters: make([]ConsoleFilter, 0),
|
||||||
limit: 1000,
|
limit: 1000,
|
||||||
handlers: make([]consoleHandlerRegistration, 0),
|
handlers: make([]consoleHandlerRegistration, 0),
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ func New(opts ...Option) (*Webview, error) {
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
cancel: cancel,
|
cancel: cancel,
|
||||||
timeout: 30 * time.Second,
|
timeout: 30 * time.Second,
|
||||||
consoleLogs: make([]ConsoleMessage, 0, 100),
|
consoleLogs: make([]ConsoleMessage, 0, 1000),
|
||||||
consoleLimit: 1000,
|
consoleLimit: 1000,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue