add webremote url in modal

This commit is contained in:
vapormusic 2022-01-22 11:00:37 +07:00
parent 82f049dcd2
commit 2db8c535a0
4 changed files with 11 additions and 4 deletions

View file

@ -426,10 +426,15 @@ export class Win {
//QR Code
electron.ipcMain.handle('setRemoteQR', async (event , _) => {
let url = await qrcode2.toDataURL(`http://${getIp()}:${this.remotePort}`)
console.log(url)
return url;
})
//Remote URL
electron.ipcMain.handle('setRemoteURL', async (event , _) => {
let url = `http://${getIp()}:${this.remotePort}`
return await url;
})
/* *********************************************************************************************
* Window Events
* **********************************************************************************************/