mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 14:14:30 +02:00
fix: Add missing refurl query to DMCA badge
This commit is contained in:
parent
a87c534039
commit
b068c38661
@ -13,14 +13,11 @@
|
|||||||
|
|
||||||
const aboutQuery = createQuery(['about'], queries.about);
|
const aboutQuery = createQuery(['about'], queries.about);
|
||||||
|
|
||||||
|
let location: string;
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
// DMCA Protection Badge
|
// DMCA Protection Badge
|
||||||
var c = document.createElement('link');
|
location = document.location.href;
|
||||||
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);
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -87,7 +84,7 @@
|
|||||||
</Query>
|
</Query>
|
||||||
<!-- DMCA Protection Badge -->
|
<!-- DMCA Protection Badge -->
|
||||||
<a
|
<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"
|
title="DMCA.com Protection Status"
|
||||||
class="dmca-badge"
|
class="dmca-badge"
|
||||||
>
|
>
|
||||||
@ -96,8 +93,6 @@
|
|||||||
alt="DMCA.com Protection Status"
|
alt="DMCA.com Protection Status"
|
||||||
/></a
|
/></a
|
||||||
>
|
>
|
||||||
<script src="https://images.dmca.com/Badges/DMCABadgeHelper.min.js">
|
|
||||||
</script>
|
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user