Commit 6d16e08
committed
Use localStorage API to track toolbar state
Replaces storing the state in cookies. For simple key/value storage, the
API is simpler. Including a cookie with each HTTP request/response is
not necessary in modern browsers.
https://developer.mozilla.org/en-US/docs/Web/API/Storage1 parent 799f585 commit 6d16e08
File tree
3 files changed
+10
-23
lines changed- debug_toolbar
- static/debug_toolbar/js
- templates/debug_toolbar
3 files changed
+10
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 85 | | |
90 | 86 | | |
91 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 202 | + | |
206 | 203 | | |
207 | 204 | | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 208 | + | |
| 209 | + | |
214 | 210 | | |
| 211 | + | |
| 212 | + | |
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
| |||
224 | 222 | | |
225 | 223 | | |
226 | 224 | | |
227 | | - | |
| 225 | + | |
228 | 226 | | |
229 | 227 | | |
230 | 228 | | |
| |||
233 | 231 | | |
234 | 232 | | |
235 | 233 | | |
236 | | - | |
| 234 | + | |
237 | 235 | | |
238 | 236 | | |
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 242 | + | |
250 | 243 | | |
251 | 244 | | |
252 | 245 | | |
| |||
263 | 256 | | |
264 | 257 | | |
265 | 258 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 259 | + | |
270 | 260 | | |
271 | 261 | | |
272 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments