revert use of const for now (wasn't working)

ref #65
This commit is contained in:
Collin M. Barrett 2018-08-28 09:07:13 -05:00
parent d338a21312
commit 8747f83408
2 changed files with 6 additions and 8 deletions

View file

@ -199,7 +199,6 @@ interface IListTagDto {
}
function SubscribeUrl(props: any) {
const titleBase = "Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).";
return props.url.indexOf("https://") === -1
? SubscribeUrlNotSecure()
: props.url.indexOf("web.archive.org") === -1
@ -209,7 +208,7 @@ function SubscribeUrl(props: any) {
function SubscribeUrlPrimary() {
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&amp;title=${encodeURIComponent(props.name)}`}
className="btn btn-primary btn-block"
title={titleBase}>
title={`Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
Subscribe
</a>;
}
@ -217,7 +216,7 @@ function SubscribeUrl(props: any) {
function SubscribeUrlWayback() {
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&amp;title=${encodeURIComponent(props.name)}`}
className="btn btn-secondary btn-block"
title={`Archive.org Mirror (Original Offline) - ${{ titleBase }}`}>
title={`Archive.org Mirror (Original Offline) - Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
Subscribe
</a>;
}
@ -225,7 +224,7 @@ function SubscribeUrl(props: any) {
function SubscribeUrlNotSecure() {
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&amp;title=${encodeURIComponent(props.name)}`}
className="btn btn-warning btn-block"
title={`Not Secure - ${{ titleBase }}` }>
title={`Not Secure - Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
Subscribe
</a>;
}

View file

@ -168,7 +168,6 @@ function License(props: any) {
}
function SubscribeUrl(props: any) {
const titleBase = "Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).";
return props.url.indexOf("https://") === -1
? SubscribeUrlNotSecure()
: props.url.indexOf("web.archive.org") === -1
@ -178,7 +177,7 @@ function SubscribeUrl(props: any) {
function SubscribeUrlPrimary() {
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&amp;title=${encodeURIComponent(props.name)}`}
className="d-block d-sm-none btn btn-primary btn-block fl-btn-details-action"
title={titleBase}>
title={`Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
Subscribe
</a>;
}
@ -186,7 +185,7 @@ function SubscribeUrl(props: any) {
function SubscribeUrlWayback() {
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&amp;title=${encodeURIComponent(props.name)}`}
className="d-block d-sm-none btn btn-secondary btn-block fl-btn-details-action"
title={`Archive.org Mirror (Original Offline) - ${{ titleBase }}`}>
title={`Archive.org Mirror (Original Offline) - Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
Subscribe
</a>;
}
@ -194,7 +193,7 @@ function SubscribeUrl(props: any) {
function SubscribeUrlNotSecure() {
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&amp;title=${encodeURIComponent(props.name)}`}
className="d-block d-sm-none btn btn-warning btn-block fl-btn-details-action"
title={`Not Secure - ${{ titleBase }}`}>
title={`Not Secure - Subscribe to list with browser extension supporting \"abp:\" protocol (e.g. uBlock Origin, AdBlock Plus).`}>
Subscribe
</a>;
}