Ver código fonte

Update formatting to match code style cd

Ewa Gasperowicz 7 anos atrás
pai
commit
310d681866
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      examples/js/workers/OffscreenCanvas.js

+ 4 - 0
examples/js/workers/OffscreenCanvas.js

@@ -65,9 +65,13 @@ function animate() {
 	renderer.render( scene, camera );
 
 	if ( self.requestAnimationFrame ) {
+
 		self.requestAnimationFrame( animate );
+
 	} else if ( renderer.context.commit ) {
+
 		renderer.context.commit().then( animate );
+
 	}
 
 }