mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
MISC: Add versionNumber to ns.ui.getGameInfo() (#2155)
This commit is contained in:
@@ -159,17 +159,12 @@ export function NetscriptUserInterface(): InternalAPI<IUserInterface> {
|
||||
},
|
||||
|
||||
getGameInfo: () => () => {
|
||||
const version = CONSTANTS.VersionString;
|
||||
const commit = commitHash();
|
||||
const platform = navigator.userAgent.toLowerCase().includes(" electron/") ? "Steam" : "Browser";
|
||||
|
||||
const gameInfo = {
|
||||
version,
|
||||
commit,
|
||||
platform,
|
||||
return {
|
||||
version: CONSTANTS.VersionString,
|
||||
versionNumber: CONSTANTS.VersionNumber,
|
||||
commit: commitHash(),
|
||||
platform: navigator.userAgent.toLowerCase().includes(" electron/") ? "Steam" : "Browser",
|
||||
};
|
||||
|
||||
return gameInfo;
|
||||
},
|
||||
|
||||
clearTerminal: (ctx) => () => {
|
||||
|
||||
Reference in New Issue
Block a user