summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/state.go b/state.go
index a967b7b..c46862f 100644
--- a/state.go
+++ b/state.go
@@ -2,6 +2,7 @@ package main
import (
"net/url"
+ "time"
"github.com/chzyer/readline"
)
@@ -19,8 +20,9 @@ type BrowserState struct {
DefaultTour Tour
CurrentTour *Tour
- Quiet bool
- Pager string
+ Quiet bool
+ Pager string
+ Timeout time.Duration
Readline *readline.Instance
}
@@ -58,8 +60,9 @@ func NewBrowserState(conf *Config) *BrowserState {
NavIndex: -1,
},
- Quiet: conf.Quiet,
- Pager: conf.Pager,
+ Quiet: conf.Quiet,
+ Pager: conf.Pager,
+ Timeout: conf.Timeout.Duration,
}
state.CurrentTour = &state.DefaultTour
return state