Skip to content

Commit cf18b1f

Browse files
Fix dynamic crates listing in doc sidebar
1 parent b058dc0 commit cf18b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@
14471447

14481448
// Draw a convenient sidebar of known crates if we have a listing
14491449
if (rootPath === '../') {
1450-
var sidebar = document.getElementsByClassName('sidebar')[0];
1450+
var sidebar = document.getElementsByClassName('sidebar-elems')[0];
14511451
var div = document.createElement('div');
14521452
div.className = 'block crate';
14531453
div.innerHTML = '<h3>Crates</h3>';

0 commit comments

Comments
 (0)