Skip to content

Commit dc7f244

Browse files
committed
Fix current version text in the Blackbox Explorer
1 parent 8ab3213 commit dc7f244

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ import defaultWorkspaceGraphConfigs from './workspaces-ctzsnooze.json';
3838
// TODO: this is a hack, once we move to web fix this
3939
globalThis.userSettings = null;
4040

41-
var VIEWER_VERSION = getManifestVersion(); // Current version
42-
4341
// these values set the initial dimensions of a secondary window
4442
// which always opens at the centre of the user's screen
4543
const NEW_WINDOW_WIDTH = 1000;

vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,7 @@ export default {
4040
},
4141
}),
4242
],
43+
define: {
44+
VIEWER_VERSION: JSON.stringify(process.env.npm_package_version),
45+
},
4346
}

0 commit comments

Comments
 (0)