utility.presence: fix start being longer than end timestamps failing to repeat
This commit is contained in:
		
							parent
							
								
									87518e084f
								
							
						
					
					
						commit
						be4210bd26
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -964,7 +964,7 @@ presence.callback = async function (msg, line) {
 | 
			
		|||
            const timePos = formatTime(position);
 | 
			
		||||
 | 
			
		||||
            const progress =
 | 
			
		||||
              activity.timestamps.start == activity.timestamps.end
 | 
			
		||||
              activity.timestamps.start >= activity.timestamps.end
 | 
			
		||||
                ? 1
 | 
			
		||||
                : position / length;
 | 
			
		||||
            const barLength = Math.round(progress * NOWPLAYING_BAR_LENGTH);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue