Skip to content

Commit

Permalink
change ?? operator to ||
Browse files Browse the repository at this point in the history
node v12 on server doesn't support (??) operator
  • Loading branch information
Algorush committed Jan 20, 2024
1 parent 1facdb3 commit 2a56e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aframe-streetmix-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function createSidewalkClonedVariants (segmentWidthInMeters, density, elevationP
}

if (animated) {
const speed = charSpeed[variantName] ?? 1.4;
const speed = charSpeed[variantName] || 1.4;
addLinearStreetAnimation(placedObjectEl, speed, streetLength, xVal, yVal, zVal, animationDirection);
} else {
// solution for pause animation-mixer animation from donmccurdy
Expand Down

0 comments on commit 2a56e70

Please sign in to comment.