(input: { readonly width?: number; readonly height?: number })
| 59 | }; |
| 60 | |
| 61 | const oauthPopupFeatures = (input: { readonly width?: number; readonly height?: number }) => { |
| 62 | const w = input.width ?? 640; |
| 63 | const h = input.height ?? 760; |
| 64 | const left = window.screenX + (window.outerWidth - w) / 2; |
| 65 | const top = window.screenY + (window.outerHeight - h) / 2; |
| 66 | return `width=${w},height=${h},left=${left},top=${top},popup=1`; |
| 67 | }; |
| 68 | |
| 69 | export const reserveOAuthPopup = (input: { |
| 70 | readonly popupName: string; |