Skip to content

Commit b068c38

Browse files
committed
fix: Add missing refurl query to DMCA badge
1 parent a87c534 commit b068c38

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/layout/Footer/FooterHost.svelte

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@
1313
1414
const aboutQuery = createQuery(['about'], queries.about);
1515
16+
let location: string;
17+
1618
onMount(() => {
1719
// DMCA Protection Badge
18-
var c = document.createElement('link');
19-
c.type = 'text/css';
20-
c.rel = 'stylesheet';
21-
c.href = 'https://images.dmca.com/badges/dmca.css?ID=' + RV_DMCA_GUID;
22-
var h = document.getElementsByTagName('head')[0];
23-
h.appendChild(c);
20+
location = document.location.href;
2421
});
2522
</script>
2623

@@ -87,7 +84,7 @@
8784
</Query>
8885
<!-- DMCA Protection Badge -->
8986
<a
90-
href="//www.dmca.com/Protection/Status.aspx?ID={RV_DMCA_GUID}"
87+
href="//www.dmca.com/Protection/Status.aspx?ID={RV_DMCA_GUID}&refurl={location}"
9188
title="DMCA.com Protection Status"
9289
class="dmca-badge"
9390
>
@@ -96,8 +93,6 @@
9693
alt="DMCA.com Protection Status"
9794
/></a
9895
>
99-
<script src="https://images.dmca.com/Badges/DMCABadgeHelper.min.js">
100-
</script>
10196
</div>
10297
</footer>
10398

0 commit comments

Comments
 (0)