Skip to content

fix: close user-menu items on click, wait for jQuery before init - #20

Merged
IAmParadox27 merged 1 commit into
IAmParadox27:mainfrom
n00bcodr:fix-19
Sep 9, 2026
Merged

IAmParadox27 merged 1 commit into
IAmParadox27:mainfrom
n00bcodr:fix-19

Conversation

@n00bcodr

@n00bcodr n00bcodr commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Injected menu items aren't real MenuItems, so clicking one left the MUI popover open behind whatever it navigated to; now clicks the popover's backdrop to close it, same as a real outside click.

jQuery is exposed globally by jellyfin-web but not always by the time this deferred script runs, causing "$ is not defined" and silently killing the script before it ever attached its MutationObserver (confirmed via Android device logcat). Now waits for it.

Also version-busts the injected script's URL so client caches actually pick up updates.

Fixes #19

Injected menu items aren't real MenuItems, so clicking one left the
MUI popover open behind whatever it navigated to; now clicks the
popover's backdrop to close it, same as a real outside click.

jQuery is exposed globally by jellyfin-web but not always by the time
this deferred script runs, causing "$ is not defined" and silently
killing the script before it ever attached its MutationObserver
(confirmed via Android device logcat). Now waits for it.

Also version-busts the injected script's URL so client caches
actually pick up updates.
@IAmParadox27
IAmParadox27 merged commit c634210 into IAmParadox27:main Sep 9, 2026
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.

v12 - Injected menu items don't close the popover on click, and inject.js can silently fail to run on some clients

2 participants