about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-06-27 17:18:50 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-06-27 23:22:44 +0200
commitacbfb8c3bdbcb29b23b11221ae2ec1386b061aa7 (patch)
tree0520616f76061a803d9bc57a5c4baaa6b3cc2b78 /src/librustdoc/html/static/js/source-script.js
parentb8e4c54ffb38885a9abd11ce2903af85cb62861f (diff)
downloadrust-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.js4
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;