From 8778e835e001adca8654c006858edf23c26fbed2 Mon Sep 17 00:00:00 2001 From: danielyxie Date: Tue, 13 Nov 2018 21:00:30 -0800 Subject: [PATCH] Importing from external URLs in scripts now properly recognizes both https and http URLs --- src/Script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Script.js b/src/Script.js index 4ee8ee761..a74c19f39 100755 --- a/src/Script.js +++ b/src/Script.js @@ -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 = "";