fix(frontend): fix opening popups on safari

This commit is contained in:
sct
2020-10-11 00:26:49 +00:00
parent 4d0c23c269
commit 364d9d105c
2 changed files with 14 additions and 12 deletions

View File

@@ -31,7 +31,10 @@ const PlexLoginButton: React.FC<PlexLoginButtonProps> = ({
<span className="block w-full rounded-md shadow-sm">
<button
type="button"
onClick={() => getPlexLogin()}
onClick={() => {
plexOAuth.preparePopup();
setTimeout(() => getPlexLogin(), 1500);
}}
disabled={loading}
className="plex-button"
>