MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isHttpPopupUrl

Function isHttpPopupUrl

packages/react/src/api/oauth-popup.ts:55–59  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

53};
54
55const 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
61const oauthPopupFeatures = (input: { readonly width?: number; readonly height?: number }) => {
62 const w = input.width ?? 640;

Callers 1

openOAuthPopupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected