[#12744] Issue using app.ens in browsee

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2021-10-25 12:19:05 +02:00
parent c4aac1478e
commit 77e593572f
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 4 additions and 0 deletions

View File

@ -179,6 +179,10 @@
this._events[name] = this._events[name].filter(filterListeners); this._events[name] = this._events[name].filter(filterListeners);
} }
EthereumProvider.prototype.removeAllListeners = function () {
this._events = {};
}
EthereumProvider.prototype.emit = function (name, data) { EthereumProvider.prototype.emit = function (name, data) {
if (!this._events[name]) { if (!this._events[name]) {
return return