We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a59ab commit 9164b48Copy full SHA for 9164b48
templates/rustdoc.hbs
@@ -10,9 +10,25 @@
10
</head>
11
<body>
12
{{> navigation_rustdoc}}
13
-<div class="{{content.rustdoc_body_class}}" tabindex="1">
+<div id="rustdoc_body_wrapper" class="{{content.rustdoc_body_class}}" tabindex="-1">
14
{{{content.rustdoc_body}}}
15
</div>
16
<script type="text/javascript" src="/menu.js?{{cratesfyi_version_safe}}"></script>
17
</body>
18
+<script>
19
+ var doc_body = document.getElementById("rustdoc_body_wrapper");
20
+ if(window.location.hash) {
21
+ var notFirefox = typeof InstallTrigger === 'undefined';
22
+ if(notFirefox) {
23
+ var hash = window.location.hash;
24
+ window.location.hash = "";
25
+ setTimeout(function () {
26
+ window.location.hash = hash;
27
+ doc_body.focus();
28
+ }, 1);
29
+ }
30
+ } else {
31
32
33
+</script>
34
</html>
0 commit comments