Merge pull request #4775 from thornbill/unused-privates
This commit is contained in:
commit
2c1167c193
3 changed files with 75 additions and 87 deletions
|
@ -65,6 +65,7 @@ module.exports = {
|
|||
'no-trailing-spaces': ['error'],
|
||||
'no-unused-expressions': ['off'],
|
||||
'@typescript-eslint/no-unused-expressions': ['error', { 'allowShortCircuit': true, 'allowTernary': true, 'allowTaggedTemplates': true }],
|
||||
'no-unused-private-class-members': ['error'],
|
||||
'no-useless-constructor': ['off'],
|
||||
'@typescript-eslint/no-useless-constructor': ['error'],
|
||||
'no-var': ['error'],
|
||||
|
|
|
@ -129,22 +129,6 @@ class PluginManager {
|
|||
.sort((p1, p2) => (p1.priority || 0) - (p2.priority || 0))[0];
|
||||
}
|
||||
|
||||
#mapRoute(plugin, route) {
|
||||
if (typeof plugin === 'string') {
|
||||
plugin = this.pluginsList.filter((p) => {
|
||||
return (p.id || p.packageName) === plugin;
|
||||
})[0];
|
||||
}
|
||||
|
||||
route = route.path || route;
|
||||
|
||||
if (route.toLowerCase().startsWith('http')) {
|
||||
return route;
|
||||
}
|
||||
|
||||
return '/plugins/' + plugin.id + '/' + route;
|
||||
}
|
||||
|
||||
mapPath(plugin, path, addCacheParam) {
|
||||
if (typeof plugin === 'string') {
|
||||
plugin = this.pluginsList.filter((p) => {
|
||||
|
|
|
@ -278,10 +278,13 @@ export class HtmlVideoPlayer {
|
|||
* @type {number | null | undefined}
|
||||
*/
|
||||
#currentTime;
|
||||
|
||||
/**
|
||||
* @private (used in other files)
|
||||
* @type {any | undefined}
|
||||
*/
|
||||
#flvPlayer;
|
||||
_flvPlayer;
|
||||
|
||||
/**
|
||||
* @private (used in other files)
|
||||
* @type {any | undefined}
|
||||
|
@ -407,7 +410,7 @@ export class HtmlVideoPlayer {
|
|||
flvPlayer.attachMediaElement(elem);
|
||||
flvPlayer.load();
|
||||
|
||||
this.#flvPlayer = flvPlayer;
|
||||
this._flvPlayer = flvPlayer;
|
||||
|
||||
// This is needed in setCurrentTrackElement
|
||||
this.#currentSrc = url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue