Skip to content

Commit

Permalink
Fix reloading for main file (#125)
Browse files Browse the repository at this point in the history
For some reason, these two lines were flipped in the PR #102 

This was probably a mistake. The reloading of the main file was broken
after that change. Therefore, I have reverted it.
  • Loading branch information
Kaladum authored Oct 20, 2024
1 parent 6b6a608 commit 72393cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/jscad-web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ document.body.ondrop = async ev => {

async function reloadProject() {
saveMap = {}
let { alias, script } = await analyzeProject(sw)
sw.filesToCheck = []
let { alias, script } = await analyzeProject(sw)
projectName = sw.projectName
if (alias.length) {
workerApi.jscadInit({ alias })
Expand Down

0 comments on commit 72393cb

Please sign in to comment.