From e1891720a7e2b78c69bf5fa1d1f30c0c66a7d696 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Sat, 22 Jan 2022 16:56:16 +0700 Subject: [PATCH] fix this --- src/main/base/win.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/base/win.ts b/src/main/base/win.ts index aaebf9fb..3069c7c6 100644 --- a/src/main/base/win.ts +++ b/src/main/base/win.ts @@ -435,8 +435,9 @@ export class Win { electron.shell.openExternal(`https://cider.sh/pair-remote?url=${btoa(encodeURI(url))}`); /* * Doing this because we can give them the link and let them send it via Pocket or another in-browser tool -q - / + */ }) + /* ********************************************************************************************* * Window Events * **********************************************************************************************/ @@ -507,7 +508,7 @@ export class Win { return ip; } const myString = `http://${getIp()}:${this.remotePort}`; - var mdns = require('mdns-js'); + let mdns = require('mdns-js'); const encoded = new Buffer(myString).toString('base64'); var x = mdns.tcp('cider-remote'); let server2 = mdns.createAdvertisement(x, `${await getPort({port: 3839})}`, { name: encoded }); @@ -515,3 +516,4 @@ export class Win { console.log('remote broadcasted') } } +