feat: add the option to copy the URL

This commit is contained in:
mio
2023-05-17 23:34:44 +08:00
parent a2dcda6be0
commit 82f42e56db
7 files changed
+34 -3

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
const { clipboard, ipcMain } = require('electron')
const { getUrl } = require('./getData')
ipcMain.handle('COPY_URL', async () => {
const url = await getUrl()
if (url) {
clipboard.writeText(url)
return true
}
return false
})