Skip to content

Commit

Permalink
fix root url for local script examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hrgdavor committed Aug 6, 2024
1 parent 10253de commit dbe42bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/jscad-web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dbe42bf

Please sign in to comment.