diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-08-23 19:43:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-23 19:43:18 +0800 |
commit | 3ae082aad8ccea338514b4cb6f3cec4e7862bb9e (patch) | |
tree | 8cacedb8df608164ab435d2e8b5e7532cda9e354 /app | |
parent | 38546505464f8bb03fc719bf200b58c9913188b9 (diff) | |
parent | 9a80d6e8598850fec00471c6101c194e90c30353 (diff) | |
download | tangerine-wallet-browser-3ae082aad8ccea338514b4cb6f3cec4e7862bb9e.tar tangerine-wallet-browser-3ae082aad8ccea338514b4cb6f3cec4e7862bb9e.tar.gz tangerine-wallet-browser-3ae082aad8ccea338514b4cb6f3cec4e7862bb9e.tar.bz2 tangerine-wallet-browser-3ae082aad8ccea338514b4cb6f3cec4e7862bb9e.tar.lz tangerine-wallet-browser-3ae082aad8ccea338514b4cb6f3cec4e7862bb9e.tar.xz tangerine-wallet-browser-3ae082aad8ccea338514b4cb6f3cec4e7862bb9e.tar.zst tangerine-wallet-browser-3ae082aad8ccea338514b4cb6f3cec4e7862bb9e.zip |
Merge pull request #5096 from evgeniuz/develop
implemented improvements to RPC history
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/controllers/preferences.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js index 707fd7de9..1b85e4fd1 100644 --- a/app/scripts/controllers/preferences.js +++ b/app/scripts/controllers/preferences.js @@ -322,7 +322,7 @@ class PreferencesController { /** * Returns an updated rpcList based on the passed url and the current list. - * The returned list will have a max length of 2. If the _url currently exists it the list, it will be moved to the + * The returned list will have a max length of 3. If the _url currently exists it the list, it will be moved to the * end of the list. The current list is modified and returned as a promise. * * @param {string} _url The rpc url to add to the frequentRpcList. @@ -338,7 +338,7 @@ class PreferencesController { if (_url !== 'http://localhost:8545') { rpcList.push(_url) } - if (rpcList.length > 2) { + if (rpcList.length > 3) { rpcList.shift() } return Promise.resolve(rpcList) |