mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
Prevent dev menu from being shown in produ
This commit is contained in:
parent
171d98c891
commit
a1a69b8042
2
dist/engine.bundle.js
vendored
2
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -1430,11 +1430,12 @@ let Engine = {
|
|||||||
bladeburner.style.display = "none";
|
bladeburner.style.display = "none";
|
||||||
corp.style.display = "none";
|
corp.style.display = "none";
|
||||||
gang.style.display = "none";
|
gang.style.display = "none";
|
||||||
|
dev.style.display = "none";
|
||||||
|
|
||||||
Engine.openMainMenuHeader(
|
Engine.openMainMenuHeader(
|
||||||
[terminal, createScript, activeScripts, stats,
|
[terminal, createScript, activeScripts, stats,
|
||||||
hacknetnodes, city,
|
hacknetnodes, city,
|
||||||
tutorial, options, dev]
|
tutorial, options]
|
||||||
);
|
);
|
||||||
|
|
||||||
//Start interactive tutorial
|
//Start interactive tutorial
|
||||||
@ -1965,7 +1966,9 @@ let Engine = {
|
|||||||
|
|
||||||
Engine.Clickables.devMainMenuButton = clearEventListeners("dev-menu-link");
|
Engine.Clickables.devMainMenuButton = clearEventListeners("dev-menu-link");
|
||||||
Engine.Clickables.devMainMenuButton.addEventListener("click", function() {
|
Engine.Clickables.devMainMenuButton.addEventListener("click", function() {
|
||||||
|
if( process.env.NODE_ENV === "development") {
|
||||||
Engine.loadDevMenuContent();
|
Engine.loadDevMenuContent();
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user