From 41490b56374a2f6d4921e0ade7510149187dd015 Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Sat, 1 May 2021 13:32:47 +0545 Subject: [PATCH] progressbar track --- src/Player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.ts b/src/Player.ts index 7c7b0e1..d9e13fb 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -882,7 +882,7 @@ export class Player extends EventEmitter { const index = Math.round((currentStreamTime / totalTime) * length); const indicator = typeof options?.indicator === 'string' && options?.indicator.length > 0 ? options?.indicator : '🔘'; - const line = typeof options?.line === 'string' ? options?.line.length > 0 ? options?.line : '▬' : '▬'; + const line = typeof options?.line === 'string' && options?.line.length > 0 ? options?.line : '▬'; if (index >= 1 && index <= length) { const bar = line.repeat(length - 1).split('');