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
@ -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} />
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user