From 1531851c25b04bb4f66560d902fd86534b92a370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Wed, 3 Oct 2018 11:53:46 -0500 Subject: [PATCH] Non-Firefox fix --- app/dist/scripts/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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");