Skip to content

Commit

Permalink
update console log for hash loader
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jun 26, 2023
1 parent b0733a5 commit 93c7507
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@
return;
}
if (streetURL.includes('//streetmix.net')) {
console.log('[set-loader-from-hash]','Using URL from hash', streetURL)
console.log('[set-loader-from-hash]','Set streetmix-loader streetmixStreetURL to', streetURL)
this.el.setAttribute('streetmix-loader', 'streetmixStreetURL', streetURL);
} else {
// try to load JSON file from remote resource
console.log('[set-loader-from-hash]','Load 3DStreet scene with fetchJSON from', streetURL)
this.fetchJSON(streetURL);
}
// else {
Expand All @@ -115,7 +116,7 @@
const jsonData = JSON.parse(this.response,
(key, value) => (key === 'set-loader-from-hash') ? undefined : value );

console.log("loading 3D-Street from JSON file");
console.log('[set-loader-from-hash]', '200 response received and JSON parsed, now createElementsFromJSON');
createElementsFromJSON(jsonData);
}
};
Expand Down

0 comments on commit 93c7507

Please sign in to comment.