mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
Importing from external URLs in scripts now properly recognizes both https and http URLs
This commit is contained in:
parent
40bfa030e5
commit
8778e835e0
@ -466,7 +466,7 @@ async function parseOnlyRamCalculate(server, code, workerScript) {
|
|||||||
const nextModule = parseQueue.shift();
|
const nextModule = parseQueue.shift();
|
||||||
|
|
||||||
let code;
|
let code;
|
||||||
if (nextModule.startsWith("https://")) {
|
if (nextModule.startsWith("https://") || nextModule.startsWith("http://")) {
|
||||||
try {
|
try {
|
||||||
const module = await eval('import(nextModule)');
|
const module = await eval('import(nextModule)');
|
||||||
code = "";
|
code = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user