Add installBackdoor

This commit is contained in:
Olivier Gagnon
2021-05-07 02:09:30 -04:00
committed by hydroflame
parent 0642491402
commit cfd78e2d36
7 changed files with 59 additions and 15 deletions
-2
View File
@@ -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);