diff --git a/src/FilterLists.Web.V2/src/shared/buttons/subscribe/SubscribeButton.tsx b/src/FilterLists.Web.V2/src/shared/buttons/subscribe/SubscribeButton.tsx
index 43d7b37b2..23d116a48 100644
--- a/src/FilterLists.Web.V2/src/shared/buttons/subscribe/SubscribeButton.tsx
+++ b/src/FilterLists.Web.V2/src/shared/buttons/subscribe/SubscribeButton.tsx
@@ -13,19 +13,21 @@ interface Props {
viewUrlMirrors: string[];
};
-export const SubscribeButton = (props: Props): JSX.Element =>
- (props.viewUrlMirrors && props.viewUrlMirrors.length)
+export const SubscribeButton = (props: Props): JSX.Element => {
+ const buttonProps = buildButtonProps(props.name, props.viewUrl);
+ return (props.viewUrlMirrors && props.viewUrlMirrors.length)
?
:
-
-
;
+
+};
const ButtonDropdown = (props: Props): JSX.Element => {
- var buttonProps = buildButtonProps(props.name, props.viewUrl);
+ const buttonProps = buildButtonProps(props.name, props.viewUrl);
return
+const DropdownOverlay = (props: DropdownOverlayProps): JSX.Element =>
;
const buildButtonProps = (name: string, viewUrl: string): [ButtonProps, boolean] => {
@@ -80,8 +83,6 @@ const buildButtonProps = (name: string, viewUrl: string): [ButtonProps, boolean]
// Software protocols
if (viewUrl.includes(".tpl")) {
disabled = true; // IE not supported by FilterLists
- // href = `javascript:window.external.msAddTrackingProtectionList('${hrefLocation}', '${hrefTitle}')`;
- // message = `Subscribe to ${name} with Internet Explorer's Tracking Protection List feature.`;
}
if (viewUrl.includes(".lsrules") || viewUrl.includes("?hostformat=littlesnitch")) {
href = `x-littlesnitch:subscribe-rules?url=${hrefLocation}`;