We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da1cc2 commit b20d0f8Copy full SHA for b20d0f8
src/dom/dom.js
@@ -2174,9 +2174,9 @@ p5.Element.prototype.remove = function() {
2174
// used as input/output for audios/videos.
2175
if (this instanceof p5.MediaElement) {
2176
this.stop();
2177
- let sources = this.elt.srcObject;
+ const sources = this.elt.srcObject;
2178
if (sources !== null) {
2179
- let tracks = sources.getTracks();
+ const tracks = sources.getTracks();
2180
tracks.forEach(track => {
2181
track.stop();
2182
});
0 commit comments