server/launcher: app address / qr code not updating when network changes

This commit is contained in:
jean-emmanuel 2024-06-19 12:53:44 +02:00
parent 33d0b54dad
commit 0e1ef27eb5
3 changed files with 8 additions and 4 deletions

View file

@ -92,7 +92,7 @@ function showQRCode(){
for (var add of addresses) {
if (launcher) {
QRCode.toString(add,{type:'svg', small: true, margin: 1}, (err, qr)=>{
launcher.webContents.send('stdout', '<div class="qrcode">' + qr + '</div>')
launcher.webContents.send('stdout', '<div class="qrcode" title="' + add + '">' + qr + '</div>')
})
if (addresses.length > 1) {
launcher.webContents.send('stdout', '(' + add + ')')