mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
Slight rebalancing on Hacknet Nodes. Added buttons for purchase multipliers. They don't work yet though
This commit is contained in:
+2
-2
@@ -21,11 +21,11 @@ function scriptEditorInit() {
|
||||
var start = this.selectionStart;
|
||||
var end = this.selectionEnd;
|
||||
|
||||
// set textarea value to: text before caret + tab + text after caret
|
||||
//Set textarea value to: text before caret + four spaces + text after caret
|
||||
spaces = " ";
|
||||
this.value = this.value.substring(0, start) + spaces + this.value.substring(end);
|
||||
|
||||
// put caret at right position again
|
||||
//Put caret at after the four spaces
|
||||
this.selectionStart = this.selectionEnd = start + spaces.length;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user