mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 12:42:09 +00:00 
			
		
		
		
	Fix autoplay
This commit is contained in:
		| @@ -338,14 +338,11 @@ if (bpb) { | ||||
|   player.ready(function() { | ||||
|     var promise = player.play(); | ||||
|  | ||||
|     if (promise === undefined) { | ||||
|       bpb.show(); | ||||
|     } else { | ||||
|       promise.then(function() { | ||||
|         bpb.show(); | ||||
|       }, function() { | ||||
|         bpb.show(); | ||||
|       }); | ||||
|     if (promise !== undefined) { | ||||
|         promise.then(_ => { | ||||
|         }).catch(error => { | ||||
|             bpb.show(); | ||||
|         }); | ||||
|     } | ||||
|   }); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth