removed unused depends and qr code depend as not necessary

This commit is contained in:
Core 2022-02-06 07:15:06 +00:00
parent 34e447f990
commit 8f5a123412
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
2 changed files with 1 additions and 12 deletions

View file

@ -6,8 +6,7 @@ import * as getPort from "get-port";
import {search} from "youtube-search-without-api-key";
import {existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync} from "fs";
import {Stream} from "stream";
import {generate as generateQR} from "qrcode-terminal";
import {hostname, networkInterfaces} from "os";
import {networkInterfaces} from "os";
import * as mm from 'music-metadata';
import fetch from 'electron-fetch'
import {wsapi} from "./wsapi";
@ -287,9 +286,6 @@ export class BrowserWindow {
this.broadcastRemote()
remote.listen(this.remotePort, () => {
console.log(`Cider remote port: ${this.remotePort}`);
if (firstRequest) {
generateQR(`http://${hostname}:${this.remotePort}`);
}
firstRequest = false;
})
remote.get("/", (_req, res) => {