mirror of
https://github.com/discourse/discourse-custom-header-links.git
synced 2025-03-09 14:18:22 +00:00
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:
parent
a99331c590
commit
41bc9b1ae1
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user