diff options
author | kumavis <aaron@kumavis.me> | 2018-10-18 07:17:39 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-10-18 07:17:39 +0800 |
commit | fa36dbf9810fce80e865489a9ac921a0485f45f4 (patch) | |
tree | db9b676a51275ab83060432d5b9a726efdaf067e /app/scripts | |
parent | 2c2ae8f4c789ddb8eef8c8b152acf8ee2b3d5878 (diff) | |
download | tangerine-wallet-browser-fa36dbf9810fce80e865489a9ac921a0485f45f4.tar.gz tangerine-wallet-browser-fa36dbf9810fce80e865489a9ac921a0485f45f4.tar.zst tangerine-wallet-browser-fa36dbf9810fce80e865489a9ac921a0485f45f4.zip |
inpage - increase provider max listeners to avoid warnings
Diffstat (limited to 'app/scripts')
-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 = {}) { |