aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts
index ef9d5bd72..59a90a3cb 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -7,6 +7,7 @@ import {
7 ipcMain, 7 ipcMain,
8 session, 8 session,
9 dialog, 9 dialog,
10 desktopCapturer,
10} from 'electron'; 11} from 'electron';
11 12
12import { emptyDirSync, ensureFileSync } from 'fs-extra'; 13import { emptyDirSync, ensureFileSync } from 'fs-extra';
@@ -632,6 +633,11 @@ ipcMain.on('set-spellchecker-locales', (_e, { locale, serviceId }) => {
632 serviceSession.setSpellCheckerLanguages(locales); 633 serviceSession.setSpellCheckerLanguages(locales);
633}); 634});
634 635
636
637ipcMain.handle('get-desktop-capturer-sources', () => desktopCapturer.getSources({
638 types: ['screen', 'window'],
639}));
640
635ipcMain.on('window.toolbar-double-clicked', () => { 641ipcMain.on('window.toolbar-double-clicked', () => {
636 mainWindow?.isMaximized() ? mainWindow.unmaximize() : mainWindow?.maximize(); 642 mainWindow?.isMaximized() ? mainWindow.unmaximize() : mainWindow?.maximize();
637}); 643});