Skip to content

Commit

Permalink
Merge pull request #19 from aeternity/fix-format
Browse files Browse the repository at this point in the history
fix: code formatting
  • Loading branch information
marc0olo authored May 10, 2023
2 parents 129c3fe + 7faf169 commit 201dbbf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios'

function showResult(resultEl) {
function showResult (resultEl) {
const className = 'hidden'
if (resultEl.classList) {
resultEl.classList.remove('hidden', 'lg:hidden')
Expand All @@ -9,15 +9,14 @@ function showResult(resultEl) {
}
}

function passQueryAccountAddressToInput(inputEl) {
function passQueryAccountAddressToInput (inputEl) {
const urlParams = new URLSearchParams(window.location.search)
const address = urlParams.get('address')
if (address) {
inputEl.value = address
}
}


document.addEventListener('DOMContentLoaded', () => {
const form = document.querySelector('#faucetForm')
const recipientEl = document.querySelector('#recipientAddress')
Expand Down Expand Up @@ -55,4 +54,4 @@ document.addEventListener('DOMContentLoaded', () => {
console.log(error)
})
})
});
})

0 comments on commit 201dbbf

Please sign in to comment.