Skip to content

Commit b20d0f8

Browse files
committed
Implement requested changes
1 parent 7da1cc2 commit b20d0f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dom/dom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,9 +2174,9 @@ p5.Element.prototype.remove = function() {
21742174
// used as input/output for audios/videos.
21752175
if (this instanceof p5.MediaElement) {
21762176
this.stop();
2177-
let sources = this.elt.srcObject;
2177+
const sources = this.elt.srcObject;
21782178
if (sources !== null) {
2179-
let tracks = sources.getTracks();
2179+
const tracks = sources.getTracks();
21802180
tracks.forEach(track => {
21812181
track.stop();
21822182
});

0 commit comments

Comments
 (0)