Merge pull request #5537 from MetaMask/inpage-provider-maxlisteners

inpage - increase provider max listeners to avoid warnings
feature/default_network_editable
kumavis 6 years ago committed by GitHub
commit 18c2d59d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 = {}) {

Loading…
Cancel
Save