chinchang / chinchang/web-maker

p5 js codes are not being rendered in one layout but rendered in a different layout (in detach preview)

Open
#432 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
323
PR merge metrics
No merged PRs in 30d

Description

## Meta info

- Is this a bug or suggestion?: Bug
- Version (click on help icon in footer): 4.0.3
- Context - Web app, Chrome extension or both?: Web App

The p5 js code which works perfectly in [this codepen](https://codepen.io/p5js/pen/lsHEn) does not render anything in the below layout.

![image](https://user-images.githubusercontent.com/23205590/92157618-4b80a700-ee48-11ea-92f5-6ee612665e03.png)

But when I open it using the option detach preview it works perfectly fine.

![image](https://user-images.githubusercontent.com/23205590/92158011-e7121780-ee48-11ea-97ce-46014d0dce78.png)



Also compare the console in both cases. In the first case the code is not even being called, thats why nothing is being printed to the console.

This is really surprising, I wasnt able to figure out why. Adding the libraries from the library drop down didnt work either. Am I missing something?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.