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:
Mazdak Farrokhzad 2019-01-18 18:06:33 +01:00 committed by GitHub
commit e26498026f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -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);
}

View file

@ -137,5 +137,3 @@ function createSourceSidebar() {
main.insertBefore(sidebar, main.firstChild);
}
createSourceSidebar();