From dbe42bfb3a35a6a8e8f60d3ea805222d2fea8ca1 Mon Sep 17 00:00:00 2001 From: Davor Hrg Date: Tue, 6 Aug 2024 19:49:22 +0200 Subject: [PATCH] fix root url for local script examples --- apps/jscad-web/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/jscad-web/main.js b/apps/jscad-web/main.js index 06f5d27..9e57ba1 100644 --- a/apps/jscad-web/main.js +++ b/apps/jscad-web/main.js @@ -367,6 +367,7 @@ try{ hasRemoteScript = await remote.init( (script, url) => { // run remote script + url = new URL(url, appBase).toString() editor.setSource(script, url) jscadScript({ script, base: url }) welcome.dismiss()