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/storage.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/storage.js')
| -rw-r--r-- | src/librustdoc/html/static/js/storage.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/librustdoc/html/static/js/storage.js b/src/librustdoc/html/static/js/storage.js index 93979a94418..71961f6f2a9 100644 --- a/src/librustdoc/html/static/js/storage.js +++ b/src/librustdoc/html/static/js/storage.js @@ -108,7 +108,7 @@ function getCurrentValue(name) { // Get a value from the rustdoc-vars div, which is used to convey data from // Rust to the JS. If there is no such element, return null. const getVar = (function getVar(name) { - const el = document.getElementById("rustdoc-vars"); + const el = document.querySelector("head > meta[name='rustdoc-vars']"); return el ? el.attributes["data-" + name].value : null; }); | 
