mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 11:55:38 +00:00
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:
@@ -139,6 +139,7 @@ export function usePlexAuth() {
|
|||||||
onSuccess: (token: string) => void,
|
onSuccess: (token: string) => void,
|
||||||
onError: (msg: string) => void
|
onError: (msg: string) => void
|
||||||
) {
|
) {
|
||||||
|
console.log("[PlexAuth] openAuthPopup called");
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
|
||||||
const width = 600;
|
const width = 600;
|
||||||
@@ -153,10 +154,12 @@ export function usePlexAuth() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (!plexPopup.value) {
|
if (!plexPopup.value) {
|
||||||
|
console.error("[PlexAuth] Popup blocked!");
|
||||||
onError("Please allow popups for this site to authenticate with Plex");
|
onError("Please allow popups for this site to authenticate with Plex");
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log("[PlexAuth] Popup opened successfully");
|
||||||
|
|
||||||
// Add loading screen
|
// Add loading screen
|
||||||
if (plexPopup.value.document) {
|
if (plexPopup.value.document) {
|
||||||
|
|||||||
Reference in New Issue
Block a user