Skip to content

Commit e297bbf

Browse files
Improve settings page display with disabled javascript
1 parent 6831417 commit e297bbf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustdoc/html/render/context.rs

+5
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,11 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
609609
</a>\
610610
</span>\
611611
</div>\
612+
<noscript>\
613+
<section>\
614+
You need to enable Javascript be able to update your settings.\
615+
</section>\
616+
</noscript>\
612617
<link rel=\"stylesheet\" type=\"text/css\" \
613618
href=\"{root_path}settings{suffix}.css\">\
614619
<script defer src=\"{root_path}settings{suffix}.js\"></script>",

0 commit comments

Comments
 (0)