Cleanup on eval error

This commit is contained in:
Chen-I Lim 2021-02-10 11:11:12 -08:00
parent a10beb52a2
commit b3a13412dd

View file

@ -78,7 +78,7 @@ func main() {
script := fmt.Sprintf("localStorage.setItem('sessionId', '%s');", sessionToken) script := fmt.Sprintf("localStorage.setItem('sessionId', '%s');", sessionToken)
value := ui.Eval(script) value := ui.Eval(script)
if err := value.Err(); err != nil { if err := value.Err(); err != nil {
log.Fatal(err) log.Panic(err)
} }
log.Printf("Started") log.Printf("Started")