When we refactored toggle_sidebar() to use sidebar_open_as_string(), this inadvertently changed the method sent to the sidebar toggle message handler from "close" to "closed".
Since we already do some disambiguation between "close"/"closed" and "open"/"opened" in the JavaScript, I updated the toggle message handler to treat "closed" and "close" as the same message.
Fixes #1042
When we refactored
toggle_sidebar()
to usesidebar_open_as_string()
, this inadvertently changed themethod
sent to the sidebar toggle message handler from"close"
to"closed"
.Since we already do some disambiguation between
"close"
/"closed"
and"open"
/"opened"
in the JavaScript, I updated the toggle message handler to treat"closed"
and"close"
as the same message.