Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ad1b5cf89 |
@@ -340,13 +340,13 @@ function showNewSettings() {
|
||||
// the stored record too. "Saved." then means that the stored record holds
|
||||
// `url`.
|
||||
//
|
||||
// `input` is the id of the input that the user typed `url` in. This page draws
|
||||
// Settings again after following another page's change to a setting. A redraw
|
||||
// during the endpoint check puts the URL from `state` back in the input. So if
|
||||
// the input no longer shows `url`, nothing is saved. The flash message then
|
||||
// says that the URL was changed during the check. The save compares the input
|
||||
// and sets `url` in `state` in one step. So a redraw after the comparison shows
|
||||
// `url`.
|
||||
// `input` is the id of the input that the user typed `url` in. When another
|
||||
// page changes the network, "Use Blockscout" or "Check recipients on
|
||||
// Etherscan", this page draws Settings again. A redraw during the endpoint
|
||||
// check puts the URL from `state` back in the input. So if the input no longer
|
||||
// shows `url`, nothing is saved. The flash message then says that the URL was
|
||||
// changed during the check. The save compares the input and sets `url` in
|
||||
// `state` in one step. So a redraw after the comparison shows `url`.
|
||||
async function saveEndpoint(field, input, url, networkId) {
|
||||
let refused = false;
|
||||
let inputChanged = false;
|
||||
|
||||
Reference in New Issue
Block a user