Reflect hypercore creation status in the interface

parent 341fe788
......@@ -35,6 +35,7 @@ function to_hex(input) {
// HTML elements.
const form = document.getElementById('connectionForm')
const hyphalinkTextField = document.getElementById('hyphalink')
const generatedTextField = document.getElementById('generated')
const connectButton = document.getElementById('connect')
const indeterminateProgressIndicator = document.getElementById('indeterminateProgressIndicator')
const hypercoreContentsTextArea = document.getElementById('hypercoreContents')
......@@ -144,7 +145,9 @@ document.addEventListener('DOMContentLoaded', () => {
localCore.on('ready', () => {
console.log('Local core ready.')
blinkSignal('ready')
generatedTextField.value = 'Yes'
// HACK: Just for now, make sure we only connect once
// (This is an issue with hyperswarm, not sure if it is with WebRTC swarm.)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment