Skip to content
Permalink
Browse files

use var instead of es6

  • Loading branch information...
endiliey committed May 18, 2019
1 parent 2a3a694 commit a977634dbb7b5f3b8858c54e4a9cf6eb624357c5
Showing with 2 additions and 2 deletions.
  1. +2 −2 packages/docusaurus-1.x/lib/core/nav/SideNav.js
@@ -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');

0 comments on commit a977634

Please sign in to comment.
You can’t perform that action at this time.