File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ export default async function start(startTime) {
78
78
app . commandLine . appendSwitch ( 'enable-experimental-web-platform-features' ) ;
79
79
app . commandLine . appendSwitch ( 'disable-features' , 'OutOfBlinkCors' ) ;
80
80
81
+ // Sets the application version in a global variable so the renderer process
82
+ // has this information without querying for it.
83
+ process . env . ARC_VERSION = app . getVersion ( ) ;
84
+
81
85
process . on ( 'uncaughtException' , ( error ) => {
82
86
if ( error . message ) {
83
87
logger . error ( error . message ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { GoogleDriveProxy } from './GoogleDriveProxy.js';
17
17
import { GoogleAnalytics } from './GoogleAnalytics.js' ;
18
18
19
19
const env = { } ;
20
- const APP_VERSION = process . env . npm_package_version ;
20
+ const APP_VERSION = process . env . ARC_VERSION ;
21
21
Object . keys ( process . env ) . forEach ( ( key ) => {
22
22
if ( key . indexOf ( 'npm_' ) === 0 || key . indexOf ( 'ARC_' ) === 0 ) {
23
23
return ;
You can’t perform that action at this time.
0 commit comments