1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

eslint cleanup

This commit is contained in:
Ian Walton 2021-04-07 02:12:07 -04:00
parent e95fb681ac
commit 12232491b8
3 changed files with 3 additions and 3 deletions

View file

@ -2350,7 +2350,7 @@ class PlaybackManager {
let directOptions;
if (mediaSource.MediaStreams && player.useFullSubtitleUrls) {
mediaSource.MediaStreams.map(stream => {
mediaSource.MediaStreams.forEach(stream => {
if (stream.DeliveryUrl && stream.DeliveryUrl.startsWith('/')) {
stream.DeliveryUrl = apiClient.getUrl(stream.DeliveryUrl);
}

View file

@ -118,7 +118,7 @@ class PlaybackCore {
* Sends a buffering request to the server.
* @param {boolean} isBuffering Whether this client is buffering or not.
*/
async sendBufferingRequest(isBuffering = true) {
async sendBufferingRequest(isBuffering = true) {
const playerWrapper = this.manager.getPlayerWrapper();
const currentPosition = (playerWrapper.currentTimeAsync
? await playerWrapper.currentTimeAsync()

View file

@ -34,7 +34,7 @@ class PlaybackPermissionManager {
* 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.
*/
async check () {
async check () {
if (await getIgnorePlayPermission()) {
return true;
}