Skip to content

Commit

Permalink
allow running multifile remote projects
Browse files Browse the repository at this point in the history
  • Loading branch information
hrgdavor committed Dec 30, 2023
1 parent cf79487 commit ca5cdab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/jscad-web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca5cdab

Please sign in to comment.