Skip to content

Commit

Permalink
use var instead of es6
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed May 18, 2019
1 parent 2a3a694 commit a977634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docusaurus-1.x/lib/core/nav/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ class SideNav extends React.Component {
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
createToggler('#tocToggler', 'body', 'tocActive');
const headings = document.querySelector('.toc-headings');
var headings = document.querySelector('.toc-headings');
headings && headings.addEventListener('click', function(event) {
let el = event.target;
var el = event.target;
while(el !== headings){
if (el.tagName === 'A') {
document.body.classList.remove('tocActive');
Expand Down

0 comments on commit a977634

Please sign in to comment.