mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2025-04-21 07:50:19 +08:00
15 lines
351 B
JavaScript
15 lines
351 B
JavaScript
const { clipboard, ipcMain } = require('electron')
|
|
const { getUrl, deleteData } = require('./getData')
|
|
|
|
ipcMain.handle('COPY_URL', async () => {
|
|
const url = await getUrl()
|
|
if (url) {
|
|
clipboard.writeText(url)
|
|
return true
|
|
}
|
|
return false
|
|
})
|
|
|
|
ipcMain.handle('DELETE_DATA', async (event, uid, action) => {
|
|
await deleteData(uid, action)
|
|
}) |