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:
Vendicated 2023-04-03 21:25:14 +02:00
parent 405be7ef13
commit 5bb08bdb64
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
2 changed files with 9 additions and 4 deletions

View file

@ -372,10 +372,10 @@ export function Player() {
return ( return (
<ErrorBoundary fallback={() => ( <ErrorBoundary fallback={() => (
<> <div className="vc-spotify-fallback">
<Forms.FormText>Failed to render Spotify Modal :(</Forms.FormText> <p>Failed to render Spotify Modal :(</p>
<Forms.FormText>Check the console for errors</Forms.FormText> <p >Check the console for errors</p>
</> </div>
)}> )}>
<div id={cl("player")}> <div id={cl("player")}>
<Info track={track} /> <Info track={track} />

View file

@ -191,3 +191,8 @@
.vc-spotify-time-right { .vc-spotify-time-right {
right: 0; right: 0;
} }
.vc-spotify-fallback {
padding: 0.5em;
color: var(--text-normal);
}