indicator

This commit is contained in:
Snowflake107 2021-05-01 13:32:23 +05:45
parent de10f51c31
commit 585b1ef17c

View file

@ -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) {