From 0ea624e78acdd344710a7de144422ed9eab8dfe2 Mon Sep 17 00:00:00 2001 From: hswaminathan Date: Wed, 21 Aug 2024 13:59:21 -0400 Subject: [PATCH] rename variable --- src/eme.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eme.js b/src/eme.js index cf610ef..4641cdb 100644 --- a/src/eme.js +++ b/src/eme.js @@ -129,11 +129,11 @@ export const makeNewRequest = (player, requestOptions) => { let pauseTimer; player.on('pause', () => { - if (options.limitRenewalsOnPause && typeof options.limitRenewalsOnPause === 'number') { + if (options.limitRenewalsOnPauseTime && typeof options.limitRenewalsOnPauseTime === 'number') { pauseTimer = setInterval(() => { timeElapsed++; - if (timeElapsed >= options.limitRenewalsOnPause) { + if (timeElapsed >= options.limitRenewalsOnPauseTime) { clearInterval(pauseTimer); } }, 1000); @@ -194,10 +194,10 @@ export const makeNewRequest = (player, requestOptions) => { if (event.messageType === 'license-renewal') { const limitRenewalsBeforePlay = options.limitRenewalsBeforePlay; - const limitRenewalsOnPause = options.limitRenewslsOnPause; + const limitRenewalsOnPauseTime = options.limitRenewalsOnPauseTime; if (!player.hasStarted() && limitRenewalsBeforePlay || - player.paused() && typeof limitRenewalsOnPause === 'number' && timeElapsed >= limitRenewalsOnPause) { + player.paused() && typeof limitRenewalsOnPauseTime === 'number' && timeElapsed >= limitRenewalsOnPauseTime) { closeAndRemoveSession(); return;