mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
Show N/A when editing a txt file
This commit is contained in:
parent
c41cd68a8d
commit
a9314f2447
@ -240,7 +240,7 @@ export function Root(props: IProps): React.ReactElement {
|
|||||||
|
|
||||||
async function updateRAM(newCode: string): Promise<void> {
|
async function updateRAM(newCode: string): Promise<void> {
|
||||||
if (currentScript != null && currentScript.fileName.endsWith(".txt")) {
|
if (currentScript != null && currentScript.fileName.endsWith(".txt")) {
|
||||||
debouncedSetRAM("", []);
|
debouncedSetRAM("N/A", [["N/A", ""]]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setUpdatingRam(true);
|
setUpdatingRam(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user