mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Linted
This commit is contained in:
parent
75d9b5619c
commit
fc7b4cb4bc
@ -168,6 +168,7 @@ EnsInput.prototype.ensIconContents = function (recipient) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNetworkEnsSupport(network) {
|
function getNetworkEnsSupport (network) {
|
||||||
return Boolean(networkMap[network])
|
return Boolean(networkMap[network])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -379,17 +379,17 @@ PendingTx.prototype.onSubmit = function (event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PendingTx.prototype.checkValidity = function() {
|
PendingTx.prototype.checkValidity = function () {
|
||||||
const form = this.getFormEl()
|
const form = this.getFormEl()
|
||||||
const valid = form.checkValidity()
|
const valid = form.checkValidity()
|
||||||
return valid
|
return valid
|
||||||
}
|
}
|
||||||
|
|
||||||
PendingTx.prototype.getFormEl = function() {
|
PendingTx.prototype.getFormEl = function () {
|
||||||
const form = document.querySelector('form#pending-tx-form')
|
const form = document.querySelector('form#pending-tx-form')
|
||||||
// Stub out form for unit tests:
|
// Stub out form for unit tests:
|
||||||
if (!form) {
|
if (!form) {
|
||||||
return { checkValidity() { return true } }
|
return { checkValidity () { return true } }
|
||||||
}
|
}
|
||||||
return form
|
return form
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user