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

Function oauthPopupFeatures

packages/react/src/api/oauth-popup.ts:61–67  ·  view source on GitHub ↗
(input: { readonly width?: number; readonly height?: number })

Source from the content-addressed store, hash-verified

59};
60
61const 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
69export const reserveOAuthPopup = (input: {
70 readonly popupName: string;

Callers 1

reserveOAuthPopupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected