func (e *editor) onDevtools(this *window.Window, c *transport.Command) error { e.isDevtools = !e.isDevtools if e.isDevtools { this.OpenDevtools() } else { this.CloseDevtools() } return nil }