Skip to content

Commit 27585cb

Browse files
committed
fix: cookie settings link
1 parent 7171975 commit 27585cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/layouts/Layout.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ const ogImage = image ? new URL(image, Astro.site ?? 'https://devproxy.net').hre
5656
})(window, document, "clarity", "script", "vr3ajkmgm3");
5757
}
5858
function checkConsent() {
59-
if (window.cookieConsent) {
60-
var consent = window.cookieConsent.get();
61-
if (consent && consent.analytics) loadClarity();
59+
if (window.astroConsent) {
60+
var consent = window.astroConsent.get();
61+
if (consent && consent.categories && consent.categories.analytics) loadClarity();
6262
}
6363
}
6464
checkConsent();
@@ -149,7 +149,7 @@ const ogImage = image ? new URL(image, Astro.site ?? 'https://devproxy.net').hre
149149
<footer class="border-t py-8 mt-16" style="border-color: var(--border-primary);">
150150
<div class="max-w-6xl mx-auto px-4 text-center text-sm" style="color: var(--text-faint);">
151151
<p>&copy; {new Date().getFullYear()} Dev Proxy.</p>
152-
<p class="mt-2"><button onclick="window.cookieConsent && window.cookieConsent.reset()" class="underline hover:text-purple-400 transition-colors" style="color: var(--text-faint); background: none; border: none; cursor: pointer; font-size: inherit;">Cookie Settings</button></p>
152+
<p class="mt-2"><button onclick="window.astroConsent && window.astroConsent.reset()" class="underline hover:text-purple-400 transition-colors" style="color: var(--text-faint); background: none; border: none; cursor: pointer; font-size: inherit;">Cookie Settings</button></p>
153153
</div>
154154
</footer>
155155

0 commit comments

Comments
 (0)