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