Skip to content

Commit

Permalink
Remove redundant brackets
Browse files Browse the repository at this point in the history
Signed-off-by: Hollow Man <[email protected]>
  • Loading branch information
HollowMan6 committed Feb 10, 2022
1 parent babbf81 commit ad5dd5f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,25 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
<script type='text/javascript'>
let markAllContentHasLoadedForPrinting = () =>
window.setTimeout(
() => {{
() => {
let p = document.createElement('div');
p.setAttribute('id', 'content-has-all-loaded-for-mdbook-pdf-generation');
document.body.appendChild(p);
}}, 100
}, 100
);
window.addEventListener('load', () => {{
window.addEventListener('load', () => {
// Expand all the <details> elements for printing.
r = document.getElementsByTagName('details');
for (let i of r)
i.open = true;
try {{
try {
MathJax.Hub.Register.StartupHook('End', markAllContentHasLoadedForPrinting);
}} catch (e) {{
} catch (e) {
markAllContentHasLoadedForPrinting();
}}
}});
}
});
</script>",
1,
);
Expand Down

0 comments on commit ad5dd5f

Please sign in to comment.