SpotifyControls: Fix crashing on canary
Vencord is still pretty broken on Canary and likely will be for a bit, but this should at least fix instantly crashing
This commit is contained in:
		
							parent
							
								
									405be7ef13
								
							
						
					
					
						commit
						5bb08bdb64
					
				
					 2 changed files with 9 additions and 4 deletions
				
			
		|  | @ -372,10 +372,10 @@ export function Player() { | |||
| 
 | ||||
|     return ( | ||||
|         <ErrorBoundary fallback={() => ( | ||||
|             <> | ||||
|                 <Forms.FormText>Failed to render Spotify Modal :(</Forms.FormText> | ||||
|                 <Forms.FormText>Check the console for errors</Forms.FormText> | ||||
|             </> | ||||
|             <div className="vc-spotify-fallback"> | ||||
|                 <p>Failed to render Spotify Modal :(</p> | ||||
|                 <p >Check the console for errors</p> | ||||
|             </div> | ||||
|         )}> | ||||
|             <div id={cl("player")}> | ||||
|                 <Info track={track} /> | ||||
|  |  | |||
|  | @ -191,3 +191,8 @@ | |||
| .vc-spotify-time-right { | ||||
|     right: 0; | ||||
| } | ||||
| 
 | ||||
| .vc-spotify-fallback { | ||||
|     padding: 0.5em; | ||||
|     color: var(--text-normal); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue