Move desktop screen capture into modules/screen-capture and align preload build paths and imports.

This commit is contained in:
CREDO23 2026-04-27 20:39:03 +02:00
parent 9cd4daa6b3
commit d4caae6de9
9 changed files with 23 additions and 16 deletions

View file

@ -1,11 +0,0 @@
import { contextBridge, ipcRenderer } from 'electron';
import { IPC_CHANNELS } from './ipc/channels';
contextBridge.exposeInMainWorld('surfsenseScreenRegion', {
submit: (rect: { x: number; y: number; width: number; height: number }) => {
ipcRenderer.send(IPC_CHANNELS.SCREEN_REGION_SUBMIT, rect);
},
cancel: () => {
ipcRenderer.send(IPC_CHANNELS.SCREEN_REGION_CANCEL);
},
});