mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Increase preferences store max listener count (#8578)
The max listener count of the preferences store has been increased to 12. Recently the 12th listener was added, which resulted in console warnings during the unit tests - this prevents those warnings. The default max listener value is 10; we didn't see this warning until now because one of the twelve listeners is only setup when 3Box is enabled, which doesn't occur during our unit tests.
This commit is contained in:
parent
24cbb6fc66
commit
cfea55c2d7
@ -65,6 +65,7 @@ export default class PreferencesController {
|
||||
this.diagnostics = opts.diagnostics
|
||||
this.network = opts.network
|
||||
this.store = new ObservableStore(initState)
|
||||
this.store.setMaxListeners(12)
|
||||
this.openPopup = opts.openPopup
|
||||
this._subscribeProviderType()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user