broadcast remote delay
This commit is contained in:
parent
69029cac5f
commit
b3ff5e5365
1 changed files with 2 additions and 3 deletions
|
@ -103,9 +103,6 @@ export class Win {
|
||||||
// Register listeners on Window to track size and position of the Window.
|
// Register listeners on Window to track size and position of the Window.
|
||||||
windowState.manage(this.win);
|
windowState.manage(this.win);
|
||||||
|
|
||||||
// Start Remote Discovery
|
|
||||||
this.broadcastRemote()
|
|
||||||
|
|
||||||
return this.win;
|
return this.win;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -205,6 +202,8 @@ export class Win {
|
||||||
remote.set("view engine", "ejs");
|
remote.set("view engine", "ejs");
|
||||||
getPort({port: 6942}).then((port) => {
|
getPort({port: 6942}).then((port) => {
|
||||||
this.remotePort = port;
|
this.remotePort = port;
|
||||||
|
// Start Remote Discovery
|
||||||
|
this.broadcastRemote()
|
||||||
remote.listen(this.remotePort, () => {
|
remote.listen(this.remotePort, () => {
|
||||||
console.log(`Cider remote port: ${this.remotePort}`);
|
console.log(`Cider remote port: ${this.remotePort}`);
|
||||||
if (firstRequest) {
|
if (firstRequest) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue