Rollup merge of #50284 - GuillaumeGomez:search-load-failure, r=SimonSapin

fix search load page failure

Fixes #50283.

r? @QuietMisdreavus
This commit is contained in:
kennytm 2018-04-28 03:32:20 +08:00 committed by GitHub
commit e5983943fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,9 +146,9 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
window.rootPath = \"{root_path}\";\
window.currentCrate = \"{krate}\";\
</script>\
<script src=\"{root_path}aliases.js\"></script>\
<script src=\"{root_path}main{suffix}.js\"></script>\
<script defer src=\"{root_path}search-index.js\"></script>\
<script defer src=\"{root_path}aliases.js\"></script>\
</body>\
</html>",
css_extension = if css_file_extension {