From 9c0d9830e1de363d18adef0e8fd43b5252a5df46 Mon Sep 17 00:00:00 2001 From: child_duckling <19170969+quacksire@users.noreply.github.com> Date: Fri, 4 Feb 2022 19:51:13 -0800 Subject: [PATCH] Clean up and fix darwinShare --- src/main/base/browserwindow.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/main/base/browserwindow.ts b/src/main/base/browserwindow.ts index 54027cb3..a3aff56c 100644 --- a/src/main/base/browserwindow.ts +++ b/src/main/base/browserwindow.ts @@ -271,9 +271,8 @@ export class BrowserWindow { }); /* - * Remote Client (I had no idea how to add it to our existing express server, so I just made another one) -@quacksire - * TODO: Broadcast the remote so that /web-remote/ can connect - * https://github.com/ciderapp/Apple-Music-Electron/blob/818ed18940ff600d76eb59d22016723a75885cd5/resources/functions/handler.js#L1173 + * Remote Client -@quacksire + * https://github.com/ciderapp/Apple-Music-Electron/blob/818189ed40ff600d76eb59d22016723a75885cd5/resources/functions/handler.js#L1173 */ const remote = express(); remote.use(express.static(join(utils.getPath('srcPath'), "./web-remote/"))) @@ -286,15 +285,7 @@ export class BrowserWindow { remote.listen(this.remotePort, () => { console.log(`Cider remote port: ${this.remotePort}`); if (firstRequest) { - console.log("---- Ignore Me ;) ---"); generateQR(`http://${hostname}:${this.remotePort}`); - console.log("---- Ignore Me ;) ---"); - /* - * - * USING https://www.npmjs.com/package/qrcode-terminal for terminal - * WE SHOULD USE https://www.npmjs.com/package/qrcode for the remote (or others) for showing to user via an in-app dialog - * -@quacksire - */ } firstRequest = false; })