mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2026-09-02 16:20:11 +08:00
feat: add the option to copy the URL
This commit is contained in:
7 files changed
+34
-3
No files matched your search
@@ -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
|
||||
})
|
||||
Reference in New Issue
Block a user