From ca5cdab408d4083e89a31f998ad7e35e0703b5c9 Mon Sep 17 00:00:00 2001 From: Davor Hrg Date: Sat, 30 Dec 2023 13:09:23 +0100 Subject: [PATCH] allow running multifile remote projects https//jscad.app/#https://raw.githubusercontent.com/jscad/OpenJSCAD.org/master/packages/examples/import/STLImport/index.js --- apps/jscad-web/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/jscad-web/main.js b/apps/jscad-web/main.js index f549d23..15013e8 100644 --- a/apps/jscad-web/main.js +++ b/apps/jscad-web/main.js @@ -225,10 +225,10 @@ editor.init(defaultCode, async (script, path) => { }) menu.init(loadExample) welcome.init() -remote.init((script) => { +remote.init((script, url) => { // run remote script editor.setSource(script) - runScript({ script }) + runScript({ script, base:url }) welcome.dismiss() }, (err) => { // show remote script error