aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-10-18 07:17:39 +0800
committerkumavis <aaron@kumavis.me>2018-10-18 07:17:39 +0800
commitfa36dbf9810fce80e865489a9ac921a0485f45f4 (patch)
treedb9b676a51275ab83060432d5b9a726efdaf067e
parent2c2ae8f4c789ddb8eef8c8b152acf8ee2b3d5878 (diff)
downloadtangerine-wallet-browser-fa36dbf9810fce80e865489a9ac921a0485f45f4.tar
tangerine-wallet-browser-fa36dbf9810fce80e865489a9ac921a0485f45f4.tar.gz
tangerine-wallet-browser-fa36dbf9810fce80e865489a9ac921a0485f45f4.tar.bz2
tangerine-wallet-browser-fa36dbf9810fce80e865489a9ac921a0485f45f4.tar.lz
tangerine-wallet-browser-fa36dbf9810fce80e865489a9ac921a0485f45f4.tar.xz
tangerine-wallet-browser-fa36dbf9810fce80e865489a9ac921a0485f45f4.tar.zst
tangerine-wallet-browser-fa36dbf9810fce80e865489a9ac921a0485f45f4.zip
inpage - increase provider max listeners to avoid warnings
-rw-r--r--app/scripts/inpage.js2
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 = {}) {