Repository navigation
Fix: example.js stores defaultHTML function reference instead of calling it - #4395
syedbarkath980 wants to merge 2 commits into
Conversation
1649ec4 to
9ef1f5f
Compare
f83b34b to
08a671f
Compare
|
Hi @syedbarkath980 this looks good, thanks for fixing so quickly! Would you be able to update your demo to just check that /all/ the example sketches work as expected? If any of them don't work, maybe we should update to Thoughts @doradocodes @ksen0? |
|
@clairep94 i tried to run other "Example Sketches" as well but getting this error: temperrors.mp4i applied your suggested patch: temperrors.fix.after.patch.mp4In the previous "After Fix" video i did not shown the sketches which was giving errors because i thought that was unrelated to PR. What should i do now? should i commit with the suggested patch version? |
08a671f to
5094d6b
Compare
|
Thanks @syedbarkath980 again for the quick response! I think let's update the PR to do the Could you please also create the following new issues?
|
dd5f5c0 to
8525d8b
Compare
|
Hi @clairep94 i have updated the PR to do the For the issues you asked me to create:
There is already 2 issues exists for the same: Should i still go ahead and create these issues? |
Issue:
Fixes #4344
Description
This PR fixes an issue where the
defaultHTMLfunction reference was assigned directly to thecontentproperty of the defaultindex.htmlfile instead of invoking the function to retrieve its returned HTML string.As a result, examples displayed the raw JavaScript function source in the preview instead of rendering the expected HTML page and p5.js sketch.
The fix invokes
defaultHTML()so that the generated HTML content is correctly stored in the project.Before
improper.defaultHTML.function.call.Before.fix.mp4
After
improper.defaultHTML.function.call.After.fix.mp4
The above video demonstrate that sketch correctly renders the HTML page.
I have verified that this pull request:
npm run lint)npm run test)npm run typecheck)developbranch.Fixes #123