fix: Add missing refurl query to DMCA badge

This commit is contained in:
oSumAtrIX 2024-12-05 22:06:09 +01:00
parent a87c534039
commit b068c38661
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -13,14 +13,11 @@
const aboutQuery = createQuery(['about'], queries.about);
let location: string;
onMount(() => {
// DMCA Protection Badge
var c = document.createElement('link');
c.type = 'text/css';
c.rel = 'stylesheet';
c.href = 'https://images.dmca.com/badges/dmca.css?ID=' + RV_DMCA_GUID;
var h = document.getElementsByTagName('head')[0];
h.appendChild(c);
location = document.location.href;
});
</script>
@ -87,7 +84,7 @@
</Query>
<!-- DMCA Protection Badge -->
<a
href="//www.dmca.com/Protection/Status.aspx?ID={RV_DMCA_GUID}"
href="//www.dmca.com/Protection/Status.aspx?ID={RV_DMCA_GUID}&refurl={location}"
title="DMCA.com Protection Status"
class="dmca-badge"
>
@ -96,8 +93,6 @@
alt="DMCA.com Protection Status"
/></a
>
<script src="https://images.dmca.com/Badges/DMCABadgeHelper.min.js">
</script>
</div>
</footer>