diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-06-28 18:28:48 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-28 18:28:48 +0530 |
| commit | a70842c7d16cfd4baebbf068203eaeb034bf55d5 (patch) | |
| tree | 42bf9023b9a9dbf24a1df9dc00ca5d6b95fd5c6e /src/librustdoc/html/static/js/source-script.js | |
| parent | e4e1a995dcecddd71760f1f946f282e7825181e8 (diff) | |
| parent | acbfb8c3bdbcb29b23b11221ae2ec1386b061aa7 (diff) | |
| download | rust-a70842c7d16cfd4baebbf068203eaeb034bf55d5.tar.gz rust-a70842c7d16cfd4baebbf068203eaeb034bf55d5.zip | |
Rollup merge of #113094 - GuillaumeGomez:fix-invalid-div-tag-in-head, r=notriddle,fmease
Fix invalid HTML DIV tag used in HEAD Fixes https://github.com/rust-lang/rust/issues/113067. The issue also nicely explains the whole problem. r? ``@notriddle``
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
| -rw-r--r-- | src/librustdoc/html/static/js/source-script.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/js/source-script.js b/src/librustdoc/html/static/js/source-script.js index d999f3b36fd..6eb99136040 100644 --- a/src/librustdoc/html/static/js/source-script.js +++ b/src/librustdoc/html/static/js/source-script.js @@ -3,13 +3,13 @@ // Local js definitions: /* global addClass, getCurrentValue, onEachLazy, removeClass, browserSupportsHistoryApi */ -/* global updateLocalStorage */ +/* global updateLocalStorage, getVar */ "use strict"; (function() { -const rootPath = document.getElementById("rustdoc-vars").attributes["data-root-path"].value; +const rootPath = getVar("root-path"); const NAME_OFFSET = 0; const DIRS_OFFSET = 1; |
