diff options
Diffstat (limited to 'src/features/basicAuth/mainIpcHandler.ts')
-rw-r--r-- | src/features/basicAuth/mainIpcHandler.ts | 11 |
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 @@ | |||
1 | import { BrowserWindow } from 'electron'; | ||
2 | |||
3 | const debug = require('debug')('Ferdi:feature:basicAuth:main'); | ||
4 | |||
5 | export 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 | } | ||