Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

472 B
Raw Blame
import { ipcRenderer } from 'electron';

import { CONNECTOR_OAUTH_RESULT_CHANNEL } from '../common/connectorOAuth';

// This preload exposes no desktop APIs. The main process verifies the sending
// frame, callback URL and OAuth state before accepting a status message.
window.addEventListener('message', (event) => {
  if (event.source !== window || event.data?.type !== 'lobe-connector-oauth') return;
  ipcRenderer.send(CONNECTOR_OAUTH_RESULT_CHANNEL, event.data);
});