diff --git a/docs/_template/material/public/main.js b/docs/_template/material/public/main.js index a98cf9dc..24cfbe71 100644 --- a/docs/_template/material/public/main.js +++ b/docs/_template/material/public/main.js @@ -20,6 +20,9 @@ { // Ugly hack to improve toc filter. let target = document.getElementById("toc"); + + if(!target) return; + let config = { attributes: false, childList: true, subtree: true }; let observer = new MutationObserver((list) => {