Skip to content

Commit

Permalink
fix: support version when running as an Electron app
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Feb 6, 2022
1 parent 002ab14 commit 2e9d183
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/webserver/webServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ const presetList = ['Salvo 1', 'Salvo 2', 'Salvo 3', 'Salvo 4']
let sources: ISource[]
let targets: ITarget[]
let discoveredNdiSources: IDiscoveredNdiSource[]
const NDI_CONTROLLER_VERSION = process.env.npm_package_version
let NDI_CONTROLLER_VERSION = process.env.npm_package_version
if (app) {
NDI_CONTROLLER_VERSION = app.getVersion()
}


export const initializeWebserver = (
sourcesProps: ISource[],
Expand Down

0 comments on commit 2e9d183

Please sign in to comment.