Merge pull request #577 from AleziaKurdis/PlacesAppHomeFallback

Home button fallbacking to Tutorial
This commit is contained in:
ksuprynowicz 2023-08-18 20:41:19 +02:00 committed by GitHub
commit 0cecaa3e54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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();
@ -442,7 +442,7 @@
"domain": "",
"domainOrder": "ZZZZZZZZZZZZZZZ",
"metaverseServer": "",
"metaverseRegion": "local"
"metaverseRegion": "local"
};
portalList.push(tutorialPortal);