mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 05:32:09 +00:00
removeAllListeners added to services transport
This commit is contained in:
parent
6ecd46c108
commit
7b372b88cc
2 changed files with 6 additions and 0 deletions
|
|
@ -106,6 +106,9 @@ function ChromecastTransport() {
|
|||
this.off = function(name, listener) {
|
||||
events.off(name, listener);
|
||||
};
|
||||
this.removeAllListeners = function() {
|
||||
events.removeAllListeners();
|
||||
};
|
||||
this.getCastState = function() {
|
||||
return cast.framework.CastContext.getInstance().getCastState();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -31,6 +31,9 @@ function CoreTransport() {
|
|||
this.off = function(name, listener) {
|
||||
events.off(name, listener);
|
||||
};
|
||||
this.removeAllListeners = function() {
|
||||
events.removeAllListeners();
|
||||
};
|
||||
this.getState = function(field) {
|
||||
return get_state(field);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue