gui: show onion address

This commit is contained in:
thePR0M3TH3AN
2025-06-21 14:36:29 -04:00
parent c8c720a5ff
commit e0eb7fbfd3
3 changed files with 22 additions and 4 deletions

View File

@@ -7,10 +7,14 @@
<body>
<h1>VoxVera</h1>
<button id="quickstart">Quickstart</button>
<p id="onion-address"></p>
<script>
document.getElementById('quickstart').addEventListener('click', () => {
window.voxvera.quickstart();
});
window.voxvera.onOnionUrl(url => {
document.getElementById('onion-address').textContent = `Onion address: ${url}`;
});
</script>
</body>
</html>