Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion hugo-site/static/js/donation-success.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ function displayCertificate(armoredCertificate, armoredSigningKey) {
const certB64 = urlSafeBase64(armoredCertificate);
const skB64 = urlSafeBase64(armoredSigningKey);
const contractId = 'DLog47hEsrtuGT4N5XCeMBG45m4n1aWM89tBZXue2E1N';
const importUrl = `http://127.0.0.1:7509/v1/contract/web/${contractId}/#import=${certB64}.${skB64}`;
// Use localhost rather than the literal 127.0.0.1: the node binds its
// API on the IPv6 loopback by default, so on Windows "localhost" (::1)
// is reachable while the literal IPv4 address is refused.
const importUrl = `http://localhost:7509/v1/contract/web/${contractId}/#import=${certB64}.${skB64}`;
window.open(importUrl, '_blank');
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@
<script>
document.addEventListener('DOMContentLoaded', function() {
const apiUrl = window.ghostkeyApiUrl;
const riverBaseUrl = 'http://127.0.0.1:7509/v1/contract/web/raAqMhMG7KUpXBU2SxgCQ3Vh4PYjttxdSWd9ftV7RLv/';
// Use localhost rather than the literal 127.0.0.1 so the link works on
// Windows: the node binds its API on the IPv6 loopback by default, and
// Windows resolves "localhost" to ::1 (reachable) while the literal IPv4
// address is refused. localhost is reachable on every platform.
const riverBaseUrl = 'http://localhost:7509/v1/contract/web/raAqMhMG7KUpXBU2SxgCQ3Vh4PYjttxdSWd9ftV7RLv/';

const getInviteBtn = document.getElementById('get-invite-btn');
const inviteForm = document.getElementById('invite-form');
Expand Down
Loading