Importing from external URLs in scripts now properly recognizes both https and http URLs

This commit is contained in:
danielyxie 2018-11-13 21:00:30 -08:00
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 = "";