aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/basicAuth/mainIpcHandler.ts
blob: 2f78b14975ddb29a0672dc19f5c298ec39f0d9b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { BrowserWindow } from 'electron';

const debug = require('debug')('Ferdium:feature:basicAuth:main');

export default function mainIpcHandler(mainWindow: BrowserWindow, authInfo) {
  debug('Sending basic auth call', authInfo);

  mainWindow.webContents.send('feature:basic-auth', {
    authInfo,
  });
}