Skip to content

Commit 4ac6f9b

Browse files
Automatically set the correct URL on the oracle_qr page
1 parent 1d9c6c5 commit 4ac6f9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

oracle_qr.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@
310310
<h1>Jade pin server QR generator</h1>
311311
<label for="urla">urlA</label>
312312
<input type="text" id="urla" placeholder="http://taf3nizjnxuqxlg64t7ldtejs7qyevlwiuno4tjym4dtuhixyzhi27ad.onion:8096" size="64" value="http://127.0.0.1:4443" /><br>
313+
<script>
314+
document.getElementById("urla").value = window.location.protocol + "//" + window.location.host;
315+
</script>
313316
<label for="urlb">urlB</label>
314317
<input type="text" id="urlb" placeholder="http://maia:8096" size="64" /><br>
315318
<label for="pubkey">pubkey (hex)</label>

0 commit comments

Comments
 (0)