p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
Changes:
The clearStorage() function previously cleared the entire localStorage including the data set outside of p5.js. This is not the expected behaviour, the documentation states that only data set by the storeItem() will get cleared.
This fix checks which data has been set with storeItem() and only removes the relevant data.
Resolves #7003
Changes: The
clearStorage()
function previously cleared the entire localStorage including the data set outside of p5.js. This is not the expected behaviour, the documentation states that only data set by thestoreItem()
will get cleared. This fix checks which data has been set withstoreItem()
and only removes the relevant data.clearStorage()
functionPR Checklist
npm run lint
passes