mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 10:42:12 +00:00
remove legacy blank error handlers
This commit is contained in:
parent
85bf5c1af0
commit
5adce4f50a
5 changed files with 0 additions and 24 deletions
|
|
@ -5,9 +5,6 @@ const ChromecastTransport = require('./ChromecastTransport');
|
|||
|
||||
let castAPIAvailable = null;
|
||||
const castAPIEvents = new EventEmitter();
|
||||
castAPIEvents.on('error', (error) => {
|
||||
console.error(error);
|
||||
});
|
||||
window['__onGCastApiAvailable'] = function(available) {
|
||||
delete window['__onGCastApiAvailable'];
|
||||
castAPIAvailable = available;
|
||||
|
|
@ -21,9 +18,6 @@ function Chromecast() {
|
|||
let transport = null;
|
||||
|
||||
const events = new EventEmitter();
|
||||
events.on('error', (error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
function onCastAPIAvailabilityChanged() {
|
||||
if (castAPIAvailable) {
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@ const MESSAGE_NAMESPACE = 'urn:x-cast:com.stremio';
|
|||
|
||||
function ChromecastTransport() {
|
||||
const events = new EventEmitter();
|
||||
events.on('error', (error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
cast.framework.CastContext.getInstance().addEventListener(
|
||||
cast.framework.CastContextEventType.CAST_STATE_CHANGED,
|
||||
|
|
|
|||
|
|
@ -7,15 +7,9 @@ const CoreTransport = require('./CoreTransport');
|
|||
let transport = null;
|
||||
let apiInitialized = null;
|
||||
const apiEvents = new EventEmitter();
|
||||
apiEvents.on('error', (error) => {
|
||||
console.error(error);
|
||||
});
|
||||
initialize_api(require('@stremio/stremio-core-web/stremio_core_web_bg.wasm'))
|
||||
.then(() => {
|
||||
const transportEvents = new EventEmitter();
|
||||
transportEvents.on('error', (error) => {
|
||||
console.error(error);
|
||||
});
|
||||
return initialize_runtime(({ name, args }) => {
|
||||
try {
|
||||
transportEvents.emit(name, args);
|
||||
|
|
@ -43,9 +37,6 @@ function Core() {
|
|||
let _transport = null;
|
||||
|
||||
const events = new EventEmitter();
|
||||
events.on('error', (error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
function onAPIInitialized() {
|
||||
if (apiInitialized) {
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@ function KeyboardShortcuts() {
|
|||
let active = false;
|
||||
|
||||
const events = new EventEmitter();
|
||||
events.on('error', (error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
function onKeyDown(event) {
|
||||
if (event.keyboardShortcutPrevented || event.target.tagName === 'INPUT') {
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@ function Shell() {
|
|||
let starting = false;
|
||||
|
||||
const events = new EventEmitter();
|
||||
events.on('error', (error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
function onStateChanged() {
|
||||
events.emit('stateChanged');
|
||||
|
|
|
|||
Loading…
Reference in a new issue