Skip to content

Commit

Permalink
use third param clobber to true to reset to default values
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Sep 2, 2024
1 parent 7287d30 commit bec445e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/street-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function newScene(
AFRAME.scenes[0],
'Environment'
);
environmentEl.removeAttribute('street-environment');
environmentEl.setAttribute('street-environment', '');
// Use third param clobber to true to reset to default values
environmentEl.setAttribute('street-environment', '', true);
const geoLayer = checkOrCreateEntity(
'reference-layers',
AFRAME.scenes[0],
Expand Down

0 comments on commit bec445e

Please sign in to comment.