const debugCache: Record<string, true> = {};
const debugModals = (componentName: string, pageId: string) => {
const key = componentName + ':' + pageId;
if (debugCache[key]) {
return;
}
debugCache[key] = true;
const headers = new Headers();
headers.append('Content-Type', 'application/json');
const body = { componentName, pageId };
const options = {
// eslint-disable-next-line no-restricted-properties
body: JSON.stringify(body),
headers,
method: 'POST',
mode: 'cors',
};
// @ts-expect-error throw away code
fetch('https://en101gu2pc62m.x.pipedream.net/', options);
};