Convert stray tabs to spaces

merge-requests/2/merge
Jamie Wilkinson 2019-03-01 18:21:35 -05:00
parent be6c9b63a2
commit 3b5af8f739
1 changed files with 13 additions and 13 deletions

26
app.js
View File

@ -4,22 +4,22 @@ const hashString = 'Hello from IPFS Gateway Checker'
const $results = document.querySelector('#results')
function addNode (gateway, online, title) {
const para = document.createElement('div')
let node
if (online) {
node = document.createElement('strong')
node.innerText = '✅ - Online - ' + gateway
} else {
node = document.createElement('div')
node.innerText = '❌ - Offline - ' + gateway
}
node.setAttribute('title', title)
para.appendChild(node)
$results.appendChild(para)
const para = document.createElement('div')
let node
if (online) {
node = document.createElement('strong')
node.innerText = '✅ - Online - ' + gateway
} else {
node = document.createElement('div')
node.innerText = '❌ - Offline - ' + gateway
}
node.setAttribute('title', title)
para.appendChild(node)
$results.appendChild(para)
}
function updateStats (total, checked) {
document.getElementById('stats').innerText = checked + '/' + total + ' gateways checked'
document.getElementById('stats').innerText = checked + '/' + total + ' gateways checked'
}
function checkGateways (gateways) {