From e70abc57b6885e97dff54b89e752ab6df949bd67 Mon Sep 17 00:00:00 2001 From: Ven Date: Thu, 12 Jan 2023 23:15:38 +0100 Subject: Update Windows Update patcher (#404) --- src/ipcMain/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ipcMain') diff --git a/src/ipcMain/index.ts b/src/ipcMain/index.ts index ae8a96d..3f22b72 100644 --- a/src/ipcMain/index.ts +++ b/src/ipcMain/index.ts @@ -22,7 +22,7 @@ import "./updater"; import { debounce } from "@utils/debounce"; import IpcEvents from "@utils/IpcEvents"; import { Queue } from "@utils/Queue"; -import { BrowserWindow, desktopCapturer, ipcMain, shell } from "electron"; +import { BrowserWindow, ipcMain, shell } from "electron"; import { mkdirSync, readFileSync, watch } from "fs"; import { open, readFile, writeFile } from "fs/promises"; import { join } from "path"; @@ -45,9 +45,6 @@ export function readSettings() { } } -// Fix for screensharing in Electron >= 17 -ipcMain.handle(IpcEvents.GET_DESKTOP_CAPTURE_SOURCES, (_, opts) => desktopCapturer.getSources(opts)); - ipcMain.handle(IpcEvents.OPEN_QUICKCSS, () => shell.openPath(QUICKCSS_PATH)); ipcMain.handle(IpcEvents.OPEN_EXTERNAL, (_, url) => { -- cgit