mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 01:03:01 +02:00
Add installBackdoor
This commit is contained in:
committed by
hydroflame
parent
0642491402
commit
cfd78e2d36
@@ -20,7 +20,6 @@ export async function executeJSScript(scripts = [], workerScript) {
|
||||
let urls = null;
|
||||
let script = workerScript.getScript();
|
||||
if (shouldCompile(script, scripts)) {
|
||||
console.log("recompiling");
|
||||
// The URL at the top is the one we want to import. It will
|
||||
// recursively import all the other modules in the urlStack.
|
||||
//
|
||||
@@ -60,7 +59,6 @@ export async function executeJSScript(scripts = [], workerScript) {
|
||||
*/
|
||||
function shouldCompile(script, scripts) {
|
||||
if (script.module === "") return true;
|
||||
console.log(script.dependencies);
|
||||
return script.dependencies.some(dep => {
|
||||
const depScript = scripts.find(s => s.filename == dep.filename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user