diff --git a/app/dist/scripts/app.js b/app/dist/scripts/app.js index 2e4e6e4..2572e85 100755 --- a/app/dist/scripts/app.js +++ b/app/dist/scripts/app.js @@ -17,8 +17,10 @@ document.addEventListener("DOMContentLoaded", () => { // Browsers not Firefox do not yet support `text-orientation` and/or `writing-mode` -if (!/Firefox[/\s](\d+\.\d+)/.test(navigator.userAgent)) - document.querySelector(".component--glossary-toc-toggle").classList.add("noncompliant-fix"); +if ( + !/Firefox[/\s](\d+\.\d+)/.test(navigator.userAgent) && + document.querySelector(".component--glossary-toc-toggle") +) document.querySelector(".component--glossary-toc-toggle").classList.add("noncompliant-fix");