fix this
This commit is contained in:
parent
ef5ec0634e
commit
e1891720a7
1 changed files with 4 additions and 2 deletions
|
@ -435,8 +435,9 @@ export class Win {
|
||||||
electron.shell.openExternal(`https://cider.sh/pair-remote?url=${btoa(encodeURI(url))}`);
|
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
|
* Doing this because we can give them the link and let them send it via Pocket or another in-browser tool -q
|
||||||
/
|
*/
|
||||||
})
|
})
|
||||||
|
|
||||||
/* *********************************************************************************************
|
/* *********************************************************************************************
|
||||||
* Window Events
|
* Window Events
|
||||||
* **********************************************************************************************/
|
* **********************************************************************************************/
|
||||||
|
@ -507,7 +508,7 @@ export class Win {
|
||||||
return ip;
|
return ip;
|
||||||
}
|
}
|
||||||
const myString = `http://${getIp()}:${this.remotePort}`;
|
const myString = `http://${getIp()}:${this.remotePort}`;
|
||||||
var mdns = require('mdns-js');
|
let mdns = require('mdns-js');
|
||||||
const encoded = new Buffer(myString).toString('base64');
|
const encoded = new Buffer(myString).toString('base64');
|
||||||
var x = mdns.tcp('cider-remote');
|
var x = mdns.tcp('cider-remote');
|
||||||
let server2 = mdns.createAdvertisement(x, `${await getPort({port: 3839})}`, { name: encoded });
|
let server2 = mdns.createAdvertisement(x, `${await getPort({port: 3839})}`, { name: encoded });
|
||||||
|
@ -515,3 +516,4 @@ export class Win {
|
||||||
console.log('remote broadcasted')
|
console.log('remote broadcasted')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue