inpage - increase provider max listeners to avoid warnings

feature/default_network_editable
kumavis 6 years ago
parent 2c2ae8f4c7
commit fa36dbf981
  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