DEV: make class name more unique to prevent collisions (#10)

naming a nav link "Directory" for instance collides with a core css class name
This commit is contained in:
Tosin Sonuyi 2020-08-04 09:53:27 -05:00 committed by GitHub
parent a99331c590
commit 41bc9b1ae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@
const deviceClass = `.${seg[3]}`;
const linkTarget = seg[4] === "self" ? "" : "_blank";
const keepOnScrollClass = seg[5] === "keep" ? ".keep" : "";
const linkClass = `.${linkText.trim().toLowerCase().replace(/\s/gi, '-')}`;
const linkClass = `.${linkText.trim().toLowerCase().replace(/\s/gi, '-')}-custom-header-links`;
if (!linkTarget) {
headerLinks.push(