mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
eslint cleanup
This commit is contained in:
parent
e95fb681ac
commit
12232491b8
3 changed files with 3 additions and 3 deletions
|
@ -2350,7 +2350,7 @@ class PlaybackManager {
|
||||||
let directOptions;
|
let directOptions;
|
||||||
|
|
||||||
if (mediaSource.MediaStreams && player.useFullSubtitleUrls) {
|
if (mediaSource.MediaStreams && player.useFullSubtitleUrls) {
|
||||||
mediaSource.MediaStreams.map(stream => {
|
mediaSource.MediaStreams.forEach(stream => {
|
||||||
if (stream.DeliveryUrl && stream.DeliveryUrl.startsWith('/')) {
|
if (stream.DeliveryUrl && stream.DeliveryUrl.startsWith('/')) {
|
||||||
stream.DeliveryUrl = apiClient.getUrl(stream.DeliveryUrl);
|
stream.DeliveryUrl = apiClient.getUrl(stream.DeliveryUrl);
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,7 +118,7 @@ class PlaybackCore {
|
||||||
* Sends a buffering request to the server.
|
* Sends a buffering request to the server.
|
||||||
* @param {boolean} isBuffering Whether this client is buffering or not.
|
* @param {boolean} isBuffering Whether this client is buffering or not.
|
||||||
*/
|
*/
|
||||||
async sendBufferingRequest(isBuffering = true) {
|
async sendBufferingRequest(isBuffering = true) {
|
||||||
const playerWrapper = this.manager.getPlayerWrapper();
|
const playerWrapper = this.manager.getPlayerWrapper();
|
||||||
const currentPosition = (playerWrapper.currentTimeAsync
|
const currentPosition = (playerWrapper.currentTimeAsync
|
||||||
? await playerWrapper.currentTimeAsync()
|
? await playerWrapper.currentTimeAsync()
|
||||||
|
|
|
@ -34,7 +34,7 @@ class PlaybackPermissionManager {
|
||||||
* Tests playback permission. Grabs the permission when called inside a click event (or any other valid user interaction).
|
* Tests playback permission. Grabs the permission when called inside a click event (or any other valid user interaction).
|
||||||
* @returns {Promise} Promise that resolves succesfully if playback permission is allowed.
|
* @returns {Promise} Promise that resolves succesfully if playback permission is allowed.
|
||||||
*/
|
*/
|
||||||
async check () {
|
async check () {
|
||||||
if (await getIgnorePlayPermission()) {
|
if (await getIgnorePlayPermission()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue