diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-27 17:18:50 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-27 23:22:44 +0200 |
| commit | acbfb8c3bdbcb29b23b11221ae2ec1386b061aa7 (patch) | |
| tree | 0520616f76061a803d9bc57a5c4baaa6b3cc2b78 /src/librustdoc/html/static/js/source-script.js | |
| parent | b8e4c54ffb38885a9abd11ce2903af85cb62861f (diff) | |
| download | rust-acbfb8c3bdbcb29b23b11221ae2ec1386b061aa7.tar.gz rust-acbfb8c3bdbcb29b23b11221ae2ec1386b061aa7.zip | |
Replace `id` attribute with `name` for `<meta>` tag
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; |
