mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 21:53:50 +01:00
Fix ls clickable links in directory
This commit is contained in:
parent
4503da6226
commit
912fc98d3a
@ -132,7 +132,7 @@ export function ls(args: (string | number | boolean)[], server: BaseServer): voi
|
||||
)();
|
||||
const fullPath = combinePath(baseDirectory, props.path);
|
||||
function onClick() {
|
||||
const code = server.scripts.get(props.path)?.content ?? "";
|
||||
const code = server.scripts.get(fullPath)?.content ?? "";
|
||||
const map = new Map<ContentFilePath, string>();
|
||||
map.set(fullPath, code);
|
||||
Router.toScriptEditor(map);
|
||||
|
Loading…
Reference in New Issue
Block a user