mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 22:07:06 +02:00
Importing from external URLs in scripts now properly recognizes both https and http URLs
This commit is contained in:
+1
-1
@@ -466,7 +466,7 @@ async function parseOnlyRamCalculate(server, code, workerScript) {
|
||||
const nextModule = parseQueue.shift();
|
||||
|
||||
let code;
|
||||
if (nextModule.startsWith("https://")) {
|
||||
if (nextModule.startsWith("https://") || nextModule.startsWith("http://")) {
|
||||
try {
|
||||
const module = await eval('import(nextModule)');
|
||||
code = "";
|
||||
|
||||
Reference in New Issue
Block a user