diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-10-18 07:33:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 07:33:08 +0800 |
commit | 18c2d59d5795280093a30b82bc50957e8eccbcf2 (patch) | |
tree | db9b676a51275ab83060432d5b9a726efdaf067e | |
parent | 2c2ae8f4c789ddb8eef8c8b152acf8ee2b3d5878 (diff) | |
parent | fa36dbf9810fce80e865489a9ac921a0485f45f4 (diff) | |
download | tangerine-wallet-browser-18c2d59d5795280093a30b82bc50957e8eccbcf2.tar tangerine-wallet-browser-18c2d59d5795280093a30b82bc50957e8eccbcf2.tar.gz tangerine-wallet-browser-18c2d59d5795280093a30b82bc50957e8eccbcf2.tar.bz2 tangerine-wallet-browser-18c2d59d5795280093a30b82bc50957e8eccbcf2.tar.lz tangerine-wallet-browser-18c2d59d5795280093a30b82bc50957e8eccbcf2.tar.xz tangerine-wallet-browser-18c2d59d5795280093a30b82bc50957e8eccbcf2.tar.zst tangerine-wallet-browser-18c2d59d5795280093a30b82bc50957e8eccbcf2.zip |
Merge pull request #5537 from MetaMask/inpage-provider-maxlisteners
inpage - increase provider max listeners to avoid warnings
-rw-r--r-- | app/scripts/inpage.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js index 431702d63..b885a7e05 100644 --- a/app/scripts/inpage.js +++ b/app/scripts/inpage.js @@ -27,6 +27,8 @@ var metamaskStream = new LocalMessageDuplexStream({ // compose the inpage provider var inpageProvider = new MetamaskInpageProvider(metamaskStream) +// set a high max listener count to avoid unnecesary warnings +inpageProvider.setMaxListeners(100) // Augment the provider with its enable method inpageProvider.enable = function (options = {}) { |