1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
This commit is contained in:
Dan Finlay 2017-05-15 15:22:49 -07:00
parent 75d9b5619c
commit fc7b4cb4bc
2 changed files with 6 additions and 5 deletions

View File

@ -168,6 +168,7 @@ EnsInput.prototype.ensIconContents = function (recipient) {
}
}
function getNetworkEnsSupport(network) {
function getNetworkEnsSupport (network) {
return Boolean(networkMap[network])
}
}

View File

@ -379,17 +379,17 @@ PendingTx.prototype.onSubmit = function (event) {
}
}
PendingTx.prototype.checkValidity = function() {
PendingTx.prototype.checkValidity = function () {
const form = this.getFormEl()
const valid = form.checkValidity()
return valid
}
PendingTx.prototype.getFormEl = function() {
PendingTx.prototype.getFormEl = function () {
const form = document.querySelector('form#pending-tx-form')
// Stub out form for unit tests:
if (!form) {
return { checkValidity() { return true } }
return { checkValidity () { return true } }
}
return form
}