mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 15:17:48 +02:00
Script editor now saves state when switching to other tabs. Updated to version 0.19.4
This commit is contained in:
+2
-4
@@ -104,12 +104,10 @@ var Engine = {
|
||||
loadScriptEditorContent: function(filename = "", code = "") {
|
||||
Engine.hideAllContent();
|
||||
Engine.Display.scriptEditorContent.style.visibility = "visible";
|
||||
if (filename == "") {
|
||||
document.getElementById("script-editor-filename").value = "untitled";
|
||||
} else {
|
||||
if (filename != "") {
|
||||
document.getElementById("script-editor-filename").value = filename;
|
||||
document.getElementById("script-editor-text").value = code;
|
||||
}
|
||||
document.getElementById("script-editor-text").value = code;
|
||||
document.getElementById("script-editor-text").focus();
|
||||
|
||||
Engine.currentPage = Engine.Page.ScriptEditor;
|
||||
|
||||
Reference in New Issue
Block a user