mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-06 15:47:52 +02:00
BUGFIX: Fix webstorm by using a mutationLock (#2542)
This commit is contained in:
@@ -243,7 +243,11 @@ export function NetworkDisplayWrapper(): React.ReactElement {
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
{DarknetState.allowMutating ? (
|
||||
{DarknetState.mutationLock ? (
|
||||
<Typography variant={"h6"} className={classes.gold}>
|
||||
[WEBSTORM WARNING]
|
||||
</Typography>
|
||||
) : (
|
||||
<Box className={`${classes.inlineFlexBox}`}>
|
||||
<Typography variant={"h5"} sx={{ fontWeight: "bold" }}>
|
||||
Dark Net
|
||||
@@ -265,10 +269,6 @@ export function NetworkDisplayWrapper(): React.ReactElement {
|
||||
</Tooltip>
|
||||
)}
|
||||
</Box>
|
||||
) : (
|
||||
<Typography variant={"h6"} className={classes.gold}>
|
||||
[WEBSTORM WARNING]
|
||||
</Typography>
|
||||
)}
|
||||
|
||||
<div
|
||||
|
||||
@@ -67,7 +67,7 @@ export const PasswordPrompt = ({ server, onClose }: PasswordPromptProps): React.
|
||||
setLastDarknetResultFromAuth(authResult.result);
|
||||
|
||||
if (authResult.result.success) {
|
||||
DarknetEvents.emit("server-unlocked", server);
|
||||
DarknetEvents.emit();
|
||||
} else {
|
||||
// This selects the text inside the password input field so that the player can immediately start typing a new
|
||||
// guess without needing to clear out the old one.
|
||||
|
||||
Reference in New Issue
Block a user