thebaselab / codeapp

Building a full-fledged code editor for iPad
https://code.thebaselab.com
MIT License
2.97k stars 204 forks source link

Running index.html runs the index.html from another directory #503

Open GameWinner6025 opened 2 years ago

GameWinner6025 commented 2 years ago

When I press run on an index.html, it shows the page from the directory I was previously in. It also uses the CSS, JS, and more from the previous directory. Closing the app does not help fix this. I have not yet found a way to fix this.

hg0428 commented 2 years ago

Same thing for me

luni-moon commented 2 years ago

Isn't a project supposed to have only one index.html? Pardon if I misunderstood.

hg0428 commented 2 years ago

Isn't a project supposed to have only one index.html? Pardon if I misunderstood.

It does, I'm talking about a different project in a completely different.

And yes, I checked the code, everything else with the ide is working.

luni-moon commented 2 years ago

Isn't a project supposed to have only one index.html? Pardon if I misunderstood.

It does, I'm talking about a different project in a completely different.

And yes, I checked the code, everything else with the ide is working.

Okay, my bad. Thanks for the clarification.

bummoblizard commented 2 years ago

Set the working directory to the folder you are working on. The web server's root will be changed accordingly. You can do this by holding the folder cell and press "Assign as workplace folder" button.

hg0428 commented 2 years ago

Set the working directory to the folder you are working on. The web server's root will be changed accordingly. You can do this by holding the folder cell and press "Assign as workplace folder" button.

I did that, otherwise I wouldn't have made this bug report