Skip to content

Commit 16b25fb

Browse files
committed
Add localhost support for short URL feature
1 parent b1ddab3 commit 16b25fb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

attestation-result.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ async function generateAttestationDisplay(attestation) {
2222
let shortUrl = null;
2323
let requiresPayment = false;
2424

25-
if (window.location.hostname.includes('vercel.app') || window.location.hostname === 'attest.ink') {
25+
console.log('Current hostname:', window.location.hostname);
26+
27+
// Check if we're on Vercel, attest.ink, or localhost (for development)
28+
if (window.location.hostname.includes('vercel.app') ||
29+
window.location.hostname === 'attest.ink' ||
30+
window.location.hostname === 'localhost') {
2631
try {
2732
// Check localStorage for email or API key
2833
const savedEmail = localStorage.getItem('attest_ink_email');

0 commit comments

Comments
 (0)