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

@ -30,13 +30,11 @@
"dependencies": {
"@sentry/electron": "^2.5.4",
"@sentry/integrations": "^6.17.4",
"castv2-client": "^1.2.0",
"discord-rpc": "^4.0.1",
"ejs": "^3.1.6",
"electron-fetch": "^1.7.4",
"electron-log": "^4.4.5",
"electron-notarize": "^1.1.1",
"electron-packager": "^15.4.0",
"electron-store": "^8.0.1",
"electron-updater": "^4.6.1",
"electron-window-state": "^5.0.3",
@ -48,18 +46,13 @@
"mpris-service": "^2.1.2",
"music-metadata": "^7.11.4",
"node-gyp": "^8.4.1",
"node-ssdp": "^4.0.1",
"qrcode": "^1.5.0",
"qrcode-terminal": "^0.12.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"run-script-os": "^1.1.6",
"source-map-support": "^0.5.21",
"tsc": "^2.0.4",
"typescript": "^4.5.5",
"upnp-mediarenderer-client": "^1.4.0",
"v8-compile-cache": "^2.3.0",
"wavefile": "^11.0.0",
"ws": "^8.4.2",
"xml2js": "^0.4.23",
"youtube-search-without-api-key": "^1.0.7"

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) => {