mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
Fix ls clickable links in directory
This commit is contained in:
@@ -132,7 +132,7 @@ export function ls(args: (string | number | boolean)[], server: BaseServer): voi
|
|||||||
)();
|
)();
|
||||||
const fullPath = combinePath(baseDirectory, props.path);
|
const fullPath = combinePath(baseDirectory, props.path);
|
||||||
function onClick() {
|
function onClick() {
|
||||||
const code = server.scripts.get(props.path)?.content ?? "";
|
const code = server.scripts.get(fullPath)?.content ?? "";
|
||||||
const map = new Map<ContentFilePath, string>();
|
const map = new Map<ContentFilePath, string>();
|
||||||
map.set(fullPath, code);
|
map.set(fullPath, code);
|
||||||
Router.toScriptEditor(map);
|
Router.toScriptEditor(map);
|
||||||
|
|||||||
Reference in New Issue
Block a user