Skip to content

Commit

Permalink
Merge pull request #577 from AleziaKurdis/PlacesAppHomeFallback
Browse files Browse the repository at this point in the history
Home button fallbacking to Tutorial
  • Loading branch information
ksuprynowicz authored Aug 18, 2023
2 parents d42b7fd + 158de91 commit 0cecaa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions scripts/system/places/places.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@
if (placeRecords[i].metaverseRegion !== "local") {
placeUrl = "hifi://" + placeRecords[i].address;
}
if (placeRecords[i].name === "tutorial") {
placeUrl = "file:///~/serverless/tutorial.json";
}

//Add the place to the list

Expand Down
4 changes: 2 additions & 2 deletions scripts/system/places/places.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
if (LocationBookmarks.getHomeLocationAddress()) {
location.handleLookupString(LocationBookmarks.getHomeLocationAddress());
} else {
location.goToLocalSandbox();
Window.location = "file:///~/serverless/tutorial.json";
}
} else if (messageObj.action === "GO_BACK" && (n - timestamp) > INTERCALL_DELAY) {
location.goBack();
Expand Down Expand Up @@ -442,7 +442,7 @@
"domain": "",
"domainOrder": "ZZZZZZZZZZZZZZZ",
"metaverseServer": "",
"metaverseRegion": "local"
"metaverseRegion": "local"
};
portalList.push(tutorialPortal);

Expand Down

0 comments on commit 0cecaa3

Please sign in to comment.