mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +00:00
remove not needed eslint hints
This commit is contained in:
parent
f2d8c517cf
commit
017cf4fb3d
6 changed files with 0 additions and 11 deletions
|
|
@ -23,7 +23,6 @@ const Video = React.forwardRef(({ className, ...props }, ref) => {
|
||||||
try {
|
try {
|
||||||
videoRef.current.dispatch(action);
|
videoRef.current.dispatch(action);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.error('StremioVideo', error);
|
console.error('StremioVideo', error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ const ChromecastTransport = require('./ChromecastTransport');
|
||||||
let castAPIAvailable = null;
|
let castAPIAvailable = null;
|
||||||
const castAPIEvents = new EventEmitter();
|
const castAPIEvents = new EventEmitter();
|
||||||
castAPIEvents.on('error', (error) => {
|
castAPIEvents.on('error', (error) => {
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
window['__onGCastApiAvailable'] = function(available) {
|
window['__onGCastApiAvailable'] = function(available) {
|
||||||
|
|
@ -23,7 +22,6 @@ function Chromecast() {
|
||||||
|
|
||||||
const events = new EventEmitter();
|
const events = new EventEmitter();
|
||||||
events.on('error', (error) => {
|
events.on('error', (error) => {
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ const MESSAGE_NAMESPACE = 'urn:x-cast:com.stremio';
|
||||||
function ChromecastTransport() {
|
function ChromecastTransport() {
|
||||||
const events = new EventEmitter();
|
const events = new EventEmitter();
|
||||||
events.on('error', (error) => {
|
events.on('error', (error) => {
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,21 +8,18 @@ let transport = null;
|
||||||
let apiInitialized = null;
|
let apiInitialized = null;
|
||||||
const apiEvents = new EventEmitter();
|
const apiEvents = new EventEmitter();
|
||||||
apiEvents.on('error', (error) => {
|
apiEvents.on('error', (error) => {
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
initialize_api()
|
initialize_api()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const transportEvents = new EventEmitter();
|
const transportEvents = new EventEmitter();
|
||||||
transportEvents.on('error', (error) => {
|
transportEvents.on('error', (error) => {
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
return initialize_runtime(({ name, args }) => {
|
return initialize_runtime(({ name, args }) => {
|
||||||
try {
|
try {
|
||||||
transportEvents.emit(name, args);
|
transportEvents.emit(name, args);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|
@ -34,7 +31,6 @@ initialize_api()
|
||||||
apiEvents.emit('initialized');
|
apiEvents.emit('initialized');
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
apiInitialized = false;
|
apiInitialized = false;
|
||||||
apiEvents.emit('initialized');
|
apiEvents.emit('initialized');
|
||||||
|
|
@ -48,7 +44,6 @@ function Core() {
|
||||||
|
|
||||||
const events = new EventEmitter();
|
const events = new EventEmitter();
|
||||||
events.on('error', (error) => {
|
events.on('error', (error) => {
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ function KeyboardShortcuts() {
|
||||||
|
|
||||||
const events = new EventEmitter();
|
const events = new EventEmitter();
|
||||||
events.on('error', (error) => {
|
events.on('error', (error) => {
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ function Shell() {
|
||||||
|
|
||||||
const events = new EventEmitter();
|
const events = new EventEmitter();
|
||||||
events.on('error', (error) => {
|
events.on('error', (error) => {
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue