Clean up, fix duplicates

This commit is contained in:
sayhiben
2024-08-10 23:23:09 -07:00
parent c5e46c7f4d
commit bb6724a1ba
2 changed files with 1 additions and 7 deletions

View File

@@ -8,7 +8,7 @@
"prune": "rm -rf dist", "prune": "rm -rf dist",
"start": "npm run build -- --stats=errors-only && electron dist", "start": "npm run build -- --stats=errors-only && electron dist",
"start-local": "npm run build -- --stats=errors-only && electron dist --control.address=http://localhost:4444 --control.username=streamwall --control.password=local-dev", "start-local": "npm run build -- --stats=errors-only && electron dist --control.address=http://localhost:4444 --control.username=streamwall --control.password=local-dev",
"start-dev": "npm run build -- --stats=verbose && electron dist --enable-logging --control.address=http://localhost:4444 --control.address=http://localhost:4444 --control.username=streamwall --control.password=local-dev", "start-dev": "npm run build -- --stats=verbose && electron dist --enable-logging --control.address=http://localhost:4444 --control.username=streamwall --control.password=local-dev",
"test-full": "jest", "test-full": "jest",
"test": "jest --ci --reporters=default --reporters=jest-junit --testPathIgnorePatterns=src/node/server.test.js --coverage" "test": "jest --ci --reporters=default --reporters=jest-junit --testPathIgnorePatterns=src/node/server.test.js --coverage"
}, },

View File

@@ -1,6 +1,5 @@
import fs from 'fs' import fs from 'fs'
import path from 'path' import path from 'path'
import util from 'util'
import yargs from 'yargs' import yargs from 'yargs'
import TOML from '@iarna/toml' import TOML from '@iarna/toml'
import * as Y from 'yjs' import * as Y from 'yjs'
@@ -383,7 +382,6 @@ async function main(argv) {
if (argv.control.address) { if (argv.control.address) {
console.debug('Initializing web server...') console.debug('Initializing web server...')
const webDistPath = path.join(app.getAppPath(), 'web') const webDistPath = path.join(app.getAppPath(), 'web')
console.debug('1')
await initWebServer({ await initWebServer({
certDir: argv.cert.dir, certDir: argv.cert.dir,
certProduction: argv.cert.production, certProduction: argv.cert.production,
@@ -398,13 +396,9 @@ async function main(argv) {
onMessage, onMessage,
stateDoc, stateDoc,
}) })
console.debug('2')
if (argv.control.open) { if (argv.control.open) {
console.debug('3')
shell.openExternal(argv.control.address) shell.openExternal(argv.control.address)
console.debug('4')
} }
console.debug('5')
} }
if (argv.streamdelay.key) { if (argv.streamdelay.key) {