Skip to content
Snippets Groups Projects
Commit 1ec2aeb9 authored by Jonas Haag's avatar Jonas Haag
Browse files

Fix JavaScript line highlighting after reloading page

parent 04d307cc
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,11 @@ var highlight_linenos = function(opts) {
a.onmouseover = associatedLine.onmouseover = highlight;
a.onmouseout = associatedLine.onmouseout = unhighlight;
// Initial highlight
if (a.getAttribute('href') == location.hash) {
highlight();
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment