Skip to content

Commit

Permalink
hash URL loader logic improvement
Browse files Browse the repository at this point in the history
- remove streetmix-loader dependency since streetplan-loader may be used instead
- add a bit more to our hacky matching string of streetplan to reduce unintended collisions, such as a streetmix street title
  • Loading branch information
kfarr committed Apr 11, 2024
1 parent d44f098 commit 4fae032
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/json-utils_1.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ AFRAME.registerComponent('scene-title', {
});

AFRAME.registerComponent('set-loader-from-hash', {
dependencies: ['streetmix-loader'],
schema: {
defaultURL: { type: 'string' }
},
Expand All @@ -536,7 +535,7 @@ AFRAME.registerComponent('set-loader-from-hash', {
'streetmixStreetURL',
streetURL
);
} else if (streetURL.includes('streetplan.net')) {
} else if (streetURL.includes('streetplan.net/')) {
// load from Streetplan encoded JSON in URL
console.log(
'[set-loader-from-hash]',
Expand Down

0 comments on commit 4fae032

Please sign in to comment.