aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/basicAuth/mainIpcHandler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/basicAuth/mainIpcHandler.ts')
-rw-r--r--src/features/basicAuth/mainIpcHandler.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/features/basicAuth/mainIpcHandler.ts b/src/features/basicAuth/mainIpcHandler.ts
new file mode 100644
index 000000000..4ec3848e8
--- /dev/null
+++ b/src/features/basicAuth/mainIpcHandler.ts
@@ -0,0 +1,11 @@
1import { BrowserWindow } from 'electron';
2
3const debug = require('debug')('Ferdi:feature:basicAuth:main');
4
5export default function mainIpcHandler(mainWindow: BrowserWindow, authInfo) {
6 debug('Sending basic auth call', authInfo);
7
8 mainWindow.webContents.send('feature:basic-auth', {
9 authInfo,
10 });
11}