Debug: Add popup opening verification logs

- Log when openAuthPopup is called
- Log popup blocked vs success
- Helps identify if popup is even opening
This commit is contained in:
2026-02-27 17:52:38 +01:00
parent 8795845acf
commit 46880474d1

View File

@@ -139,6 +139,7 @@ export function usePlexAuth() {
onSuccess: (token: string) => void,
onError: (msg: string) => void
) {
console.log("[PlexAuth] openAuthPopup called");
loading.value = true;
const width = 600;
@@ -153,10 +154,12 @@ export function usePlexAuth() {
);
if (!plexPopup.value) {
console.error("[PlexAuth] Popup blocked!");
onError("Please allow popups for this site to authenticate with Plex");
loading.value = false;
return;
}
console.log("[PlexAuth] Popup opened successfully");
// Add loading screen
if (plexPopup.value.document) {