From 86b2f1894c834757824eef0a29f136d9e4c035e1 Mon Sep 17 00:00:00 2001 From: Martin Allerton Date: Wed, 2 Sep 2020 19:46:47 +0100 Subject: [PATCH] Updated add location script code Have not been able to test this due to not been near a proper machine, but I believe this code change should hopefully resolve the issue with the add location beacon script being wrong. --- scripts/communityScripts/explore/explore.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/communityScripts/explore/explore.html b/scripts/communityScripts/explore/explore.html index 53bd82d4a8..80a3368977 100644 --- a/scripts/communityScripts/explore/explore.html +++ b/scripts/communityScripts/explore/explore.html @@ -548,6 +548,10 @@ } if (messageData.action == "retrievePortInformationResponse") { addLocationData = messageData.goToAddresses; + for (let i = 0; i < addLocationData.length; i++) { + var metaverseProvider = addLocationData[i].split("/")[2].split(":")[0]; + addLocationData[i] = "https://" + metaverseProvider + "/interim/d-goto/app/decentralizedGoToServerScript.js"; + } addLocationComponent.updateData(addLocationData); } }); @@ -556,4 +560,4 @@ - \ No newline at end of file +