diff --git a/theme/scripts/carbon.js b/theme/scripts/carbon.js index c09d4c99..3c6652f8 100644 --- a/theme/scripts/carbon.js +++ b/theme/scripts/carbon.js @@ -1,9 +1,9 @@ // data-md-component="toc" document.addEventListener("DOMContentLoaded", function(event) { - var toc_inner = document.querySelectorAll('[data-md-component=toc] .md-sidebar__inner')[0]; + var toc_inner = document.querySelectorAll('[data-md-component=toc]')[0]; var script = document.createElement("script"); script.src = '//cdn.carbonads.com/carbon.js?serve=CK7DT2QW&placement=vaporcodes'; script.type = 'text/javascript'; script.id = '_carbonads_js'; toc_inner.appendChild(script); -}); \ No newline at end of file +});