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

showImages: Fix audio being played in the background #5521

Merged

Conversation

larsjohnsen
Copy link
Collaborator

It seems like the issue resolved in #5512 did more than just improving performance. In some cases it also prevented Reddit's video player from being initialized in the background, causing audio being played.

This PR reworks the reverted code by caching the setting value in localStorage and thereby letting us avoid having the undo logic (which is incompatible with manifest V3).

Relevant issue: Fixes #5519
Tested in browser: Chrome 124

@larsjohnsen larsjohnsen changed the title showImages: Fix audio being removed in the background showImages: Fix audio being played in the background May 2, 2024
@benmcgarry
Copy link
Collaborator

@larsjohnsen are you able to lint?

@larsjohnsen larsjohnsen force-pushed the showimages-audio-background-fix branch from 6092eaa to 0d1fdbf Compare May 3, 2024 12:14
@benmcgarry benmcgarry merged commit 7babe2c into honestbleeps:master May 4, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Video expandos now break in comments causing double audio
2 participants