Rollup merge of #104459 - notriddle:notriddle/main-js-iife, r=GuillaumeGomez

rustdoc: remove unused JS IIFE from main.js

This [IIFE] made sense when it was added in f0683f98fa and there was a local variable scoped to it, but now it only sets two globals, so it does nothing.

[IIFE]: https://developer.mozilla.org/en-US/docs/Glossary/IIFE "immediately invoked function expression"
This commit is contained in:
Matthias Krüger
2022-11-16 15:39:47 +01:00
committed by GitHub
+2 -4
View File
@@ -47,10 +47,8 @@ function blurHandler(event, parentElem, hideCallback) {
}
}
(function() {
window.rootPath = getVar("root-path");
window.currentCrate = getVar("current-crate");
}());
window.rootPath = getVar("root-path");
window.currentCrate = getVar("current-crate");
function setMobileTopbar() {
// FIXME: It would be nicer to generate this text content directly in HTML,