Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Background image not loaded until theme is reselected #53

Open
pterror opened this issue Jun 5, 2024 · 1 comment
Open

bug: Background image not loaded until theme is reselected #53

pterror opened this issue Jun 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@pterror
Copy link

pterror commented Jun 5, 2024

not OP of this message, but it's the same issue:
https://discord.com/channels/1196075698301968455/1210652540757090315/1225091476938031114

image backgrounds on themes are a bit broken on bunny.

If I restart discord the background disappears but changing (or deselecting) theme and back caused the background to show like normal

@pterror
Copy link
Author

pterror commented Jun 5, 2024

maybe patchChatBackground is running before initThemes finishes?
maybe

updateThemes().then(
  patchChatBackground,
  e => console.error("Failed to update themes", e)
);

might work... or making initThemes async and awaiting it:

return updateThemes().catch(e => console.error("Failed to update themes", e));

(i have no idea how this thing works though so i may be on the wrong track completely)

@amsyarasyiq amsyarasyiq added the bug Something isn't working label Jun 14, 2024
@amsyarasyiq amsyarasyiq changed the title Background image not loaded until theme is reselected bug: Background image not loaded until theme is reselected Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants