mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Fix invalid JS file generation
This commit is contained in:
parent
b998995813
commit
fa9c8232d7
@ -868,10 +868,10 @@ themePicker.onblur = handleThemeButtonsBlur;
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
let mut data = static_files::STORAGE_JS.to_owned();
|
|
||||||
data.push_str(&format!("var resourcesSuffix = \"{}\";", cx.shared.resource_suffix));
|
|
||||||
write_minify(cx.dst.join(&format!("storage{}.js", cx.shared.resource_suffix)),
|
write_minify(cx.dst.join(&format!("storage{}.js", cx.shared.resource_suffix)),
|
||||||
&data,
|
&format!("var resourcesSuffix = \"{}\";{}",
|
||||||
|
cx.shared.resource_suffix,
|
||||||
|
static_files::STORAGE_JS),
|
||||||
options.enable_minification)?;
|
options.enable_minification)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ function switchTheme(styleElem, mainStyleElem, newTheme) {
|
|||||||
|
|
||||||
var found = false;
|
var found = false;
|
||||||
if (savedHref.length === 0) {
|
if (savedHref.length === 0) {
|
||||||
onEach(document.getElementsByTagName("link"), function(el) {
|
onEachLazy(document.getElementsByTagName("link"), function(el) {
|
||||||
savedHref.push(el.href);
|
savedHref.push(el.href);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user