Update syntax for for..in loop

This commit is contained in:
kozbial
2021-07-27 15:32:42 -07:00
committed by Monica Kozbial
parent 813f27706f
commit 4e147b2593

View File

@@ -98,7 +98,7 @@ WorkspaceAudio.prototype.load = function(filenames, name) {
* @package
*/
WorkspaceAudio.prototype.preload = function() {
for (let name in this.SOUNDS_) {
for (const name in this.SOUNDS_) {
const sound = this.SOUNDS_[name];
sound.volume = 0.01;
const playPromise = sound.play();