(value: string)
| 53 | }; |
| 54 | |
| 55 | const isHttpPopupUrl = (value: string): boolean => { |
| 56 | if (!URL.canParse(value)) return false; |
| 57 | const url = new URL(value); |
| 58 | return url.protocol === "http:" || url.protocol === "https:"; |
| 59 | }; |
| 60 | |
| 61 | const oauthPopupFeatures = (input: { readonly width?: number; readonly height?: number }) => { |
| 62 | const w = input.width ?? 640; |