This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('node:path'); | |
| const { app, BrowserWindow, desktopCapturer, ipcMain, session } = require('electron'); | |
| let mainWindow; | |
| let selectedSourceId; | |
| let cachedSources = []; | |
| function log(...args) { | |
| const message = args | |
| .map(value => (typeof value === 'string' ? value : JSON.stringify(value))) |