From 50dcb882fb3a114eebdeda721173574cb5be7f4c Mon Sep 17 00:00:00 2001 From: Jacob Mischka Date: Sat, 3 Feb 2018 11:32:56 -0600 Subject: [PATCH] Set volume on initial update --- src/generators/nodes/Binding.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/generators/nodes/Binding.ts b/src/generators/nodes/Binding.ts index 16bd24c0f2..f1725a6d73 100644 --- a/src/generators/nodes/Binding.ts +++ b/src/generators/nodes/Binding.ts @@ -75,7 +75,9 @@ export default class Binding extends Node { if (this.name === 'currentTime' || this.name === 'volume') { updateCondition = `!isNaN(${snippet})`; - initialUpdate = null; + + if (this.name === 'currentTime') + initialUpdate = null; } if (this.name === 'paused') {