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

@ -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);
}