mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-02-10 07:48:34 +01:00
13 lines
365 B
JavaScript
13 lines
365 B
JavaScript
import { ipcMain } from 'electron'
|
|
|
|
export default (mainWindow) => {
|
|
ipcMain.handle('find-in-page', async (_, { text, ...args } = {}) => {
|
|
return mainWindow.webContents.findInPage(text, {
|
|
...args,
|
|
})
|
|
})
|
|
ipcMain.handle('stop-find-in-page', async (_, action = 'clearSelection') => {
|
|
return mainWindow.webContents.stopFindInPage(action)
|
|
})
|
|
}
|