@@ -82,12 +82,12 @@ function toggleSidebar() {
82
82
sidebar . style . left = "" ;
83
83
this . style . left = "" ;
84
84
child . innerText = "<" ;
85
- updateLocalStorage ( "rustdoc-source-sidebar-hidden " , "false " ) ;
85
+ updateLocalStorage ( "rustdoc-source-sidebar-show " , "true " ) ;
86
86
} else {
87
87
sidebar . style . left = "-300px" ;
88
88
this . style . left = "0" ;
89
89
child . innerText = ">" ;
90
- updateLocalStorage ( "rustdoc-source-sidebar-hidden " , "true " ) ;
90
+ updateLocalStorage ( "rustdoc-source-sidebar-show " , "false " ) ;
91
91
}
92
92
}
93
93
@@ -101,11 +101,11 @@ function createSidebarToggle() {
101
101
102
102
var inner2 = document . createElement ( "div" ) ;
103
103
inner2 . style . marginTop = "-2px" ;
104
- if ( getCurrentValue ( "rustdoc-source-sidebar-hidden" ) === "true" ) {
104
+ if ( getCurrentValue ( "rustdoc-source-sidebar-show" ) === "true" ) {
105
+ inner2 . innerText = "<" ;
106
+ } else {
105
107
inner2 . innerText = ">" ;
106
108
sidebarToggle . style . left = "0" ;
107
- } else {
108
- inner2 . innerText = "<" ;
109
109
}
110
110
111
111
inner1 . appendChild ( inner2 ) ;
@@ -124,7 +124,7 @@ function createSourceSidebar() {
124
124
125
125
var sidebar = document . createElement ( "div" ) ;
126
126
sidebar . id = "source-sidebar" ;
127
- if ( getCurrentValue ( "rustdoc-source-sidebar-hidden " ) = == "true" ) {
127
+ if ( getCurrentValue ( "rustdoc-source-sidebar-show " ) ! == "true" ) {
128
128
sidebar . style . left = "-300px" ;
129
129
}
130
130
0 commit comments