mirror of
https://github.com/sct/overseerr.git
synced 2025-09-27 12:39:46 +02:00
When opening plex Oauth window, open an empty page then redirect to plex oauth (#127)
* feat(frontend): custom toast * refactor(frontend): move toast width styling to globals * feat(frontend): add loading spinner for browser popup
This commit is contained in:
@@ -182,8 +182,10 @@ class PlexOAuth {
|
||||
: screen.height;
|
||||
const left = width / 2 - w / 2 + dualScreenLeft;
|
||||
const top = height / 2 - h / 2 + dualScreenTop;
|
||||
|
||||
//Set url to login/plex/loading so browser doesn't block popup
|
||||
const newWindow = window.open(
|
||||
url,
|
||||
'/login/plex/loading',
|
||||
title,
|
||||
'scrollbars=yes, width=' +
|
||||
w +
|
||||
@@ -197,6 +199,9 @@ class PlexOAuth {
|
||||
if (newWindow) {
|
||||
newWindow.focus();
|
||||
this.popup = newWindow;
|
||||
setTimeout(() => {
|
||||
newWindow.location.href = url;
|
||||
}, 1500);
|
||||
return this.popup;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user