mirror of
				https://github.com/earthjasonlin/zzz-signal-search-export.git
				synced 2025-10-31 16:40:07 +08:00 
			
		
		
		
	feat: add dialog to manage data
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| const { clipboard, ipcMain } = require('electron') | ||||
| const { getUrl } = require('./getData') | ||||
| const { getUrl, deleteData } = require('./getData') | ||||
|  | ||||
| ipcMain.handle('COPY_URL', async () => { | ||||
|   const url = await getUrl() | ||||
| @@ -8,4 +8,8 @@ ipcMain.handle('COPY_URL', async () => { | ||||
|     return true | ||||
|   } | ||||
|   return false | ||||
| }) | ||||
|  | ||||
| ipcMain.handle('DELETE_DATA', async (event, uid, action) => { | ||||
|   await deleteData(uid, action) | ||||
| }) | ||||
		Reference in New Issue
	
	Block a user