Merge pull request #427 from danielyxie/dev

Prevent dev menu from being shown in produ
This commit is contained in:
danielyxie 2018-08-06 21:16:20 -04:00 committed by GitHub
commit c0692ef611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

File diff suppressed because one or more lines are too long

@ -1430,11 +1430,12 @@ let Engine = {
bladeburner.style.display = "none";
corp.style.display = "none";
gang.style.display = "none";
dev.style.display = "none";
Engine.openMainMenuHeader(
[terminal, createScript, activeScripts, stats,
hacknetnodes, city,
tutorial, options, dev]
tutorial, options]
);
//Start interactive tutorial
@ -1965,7 +1966,9 @@ let Engine = {
Engine.Clickables.devMainMenuButton = clearEventListeners("dev-menu-link");
Engine.Clickables.devMainMenuButton.addEventListener("click", function() {
if( process.env.NODE_ENV === "development") {
Engine.loadDevMenuContent();
}
return false;
});