mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix subscribe button title prefixes
This commit is contained in:
parent
833ddae587
commit
867277716c
1 changed files with 3 additions and 3 deletions
|
|
@ -58,11 +58,11 @@ const buildButtonProps = (name: string, viewUrl: string): ButtonProps => {
|
|||
// HTTP protocols
|
||||
if (viewUrl.includes(".onion/")) {
|
||||
type = "dashed";
|
||||
prefixes.push("Tor");
|
||||
prefixes.push("TOR");
|
||||
}
|
||||
if (viewUrl.includes("http://")) {
|
||||
type = "danger";
|
||||
prefixes.push("Insecure");
|
||||
prefixes.push("INSECURE");
|
||||
}
|
||||
|
||||
// Software protocols
|
||||
|
|
@ -75,7 +75,7 @@ const buildButtonProps = (name: string, viewUrl: string): ButtonProps => {
|
|||
message = `Subscribe to ${name} with Little Snitch's rule group subscription feature.`;
|
||||
}
|
||||
|
||||
const title = `${prefixes.length ? prefixes.join(" | ") : ""}${message}`;
|
||||
const title = `${prefixes.length ? prefixes.join(" | ") + " | " : ""}${message}`;
|
||||
|
||||
return { type, href, title }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue