Non-Firefox fix
This commit is contained in:
parent
d6bb92bf33
commit
1531851c25
1 changed files with 4 additions and 2 deletions
6
app/dist/scripts/app.js
vendored
6
app/dist/scripts/app.js
vendored
|
@ -17,8 +17,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
|
||||||
|
|
||||||
// Browsers not Firefox do not yet support `text-orientation` and/or `writing-mode`
|
// Browsers not Firefox do not yet support `text-orientation` and/or `writing-mode`
|
||||||
if (!/Firefox[/\s](\d+\.\d+)/.test(navigator.userAgent))
|
if (
|
||||||
document.querySelector(".component--glossary-toc-toggle").classList.add("noncompliant-fix");
|
!/Firefox[/\s](\d+\.\d+)/.test(navigator.userAgent) &&
|
||||||
|
document.querySelector(".component--glossary-toc-toggle")
|
||||||
|
) document.querySelector(".component--glossary-toc-toggle").classList.add("noncompliant-fix");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue