Rollup merge of #57636 - GuillaumeGomez:fix-sources-sidebar, r=QuietMisdreavus
Fix sources sidebar not showing up Fixes #57601. The order of imports made it so that the sidebar creation was called before the sidebar sources were created. Like this, when the sources are loaded, they create the sidebar as expected. r? @QuietMisdreavus
This commit is contained in:
commit
e26498026f
2 changed files with 1 additions and 3 deletions
|
@ -1076,7 +1076,7 @@ themePicker.onblur = handleThemeButtonsBlur;
|
|||
all_sources.sort();
|
||||
let mut w = try_err!(File::create(&dst), &dst);
|
||||
try_err!(writeln!(&mut w,
|
||||
"var N = null;var sourcesIndex = {{}};\n{}",
|
||||
"var N = null;var sourcesIndex = {{}};\n{}\ncreateSourceSidebar();",
|
||||
all_sources.join("\n")),
|
||||
&dst);
|
||||
}
|
||||
|
|
|
@ -137,5 +137,3 @@ function createSourceSidebar() {
|
|||
|
||||
main.insertBefore(sidebar, main.firstChild);
|
||||
}
|
||||
|
||||
createSourceSidebar();
|
||||
|
|
Loading…
Reference in a new issue