diff options
Diffstat (limited to 'src/librustdoc/html/layout.rs')
| -rw-r--r-- | src/librustdoc/html/layout.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index b5169b05997..4458eea95f3 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -111,10 +111,7 @@ crate fn render<T: Print, S: Print>( <section id=\"search\" class=\"content hidden\"></section>\ <section class=\"footer\"></section>\ {after_content}\ - <script>\ - window.rootPath = \"{root_path}\";\ - window.currentCrate = \"{krate}\";\ - </script>\ + <div id=\"rustdoc-vars\" data-root-path=\"{root_path}\" data-current-crate=\"{krate}\"></div> <script src=\"{static_root_path}main{suffix}.js\"></script>\ {static_extra_scripts}\ {extra_scripts}\ |
