mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
V0.35.0. Adding netscript_tests in game testbench.
This commit is contained in:
@@ -65,7 +65,7 @@ function removeChildrenFromElement(el) {
|
||||
}
|
||||
}
|
||||
|
||||
function createElement(type, params) {
|
||||
function createElement(type, params={}) {
|
||||
var el = document.createElement(type);
|
||||
if (params.id) {el.id = params.id;}
|
||||
if (params.class) {el.className = params.class;}
|
||||
|
||||
Reference in New Issue
Block a user