mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 10:42:10 +02:00
Places app: support for file URI scheme
This PR adds the support of URI starting by "file:/" in the places app. (to allow to load local serverless json)
This commit is contained in:
parent
0bfdf92647
commit
74eefac999
1 changed files with 3 additions and 2 deletions
|
@ -502,7 +502,7 @@
|
||||||
"channel": channel,
|
"channel": channel,
|
||||||
"action": "GO_FORWARD"
|
"action": "GO_FORWARD"
|
||||||
};
|
};
|
||||||
EventBridge.emitWebEvent(JSON.stringify(message));
|
EventBridge.emitWebEvent(JSON.stringify(message));
|
||||||
}
|
}
|
||||||
|
|
||||||
function pinMetaverse(metaverseIndex, pinned) {
|
function pinMetaverse(metaverseIndex, pinned) {
|
||||||
|
@ -671,7 +671,8 @@
|
||||||
|
|
||||||
function teleportUsingAddressBarValue(url) {
|
function teleportUsingAddressBarValue(url) {
|
||||||
var finalizedUrl = url;
|
var finalizedUrl = url;
|
||||||
if (url.substr(0, 7).toLocaleLowerCase() !== "http://" &&
|
if (url.substr(0, 6).toLocaleLowerCase() !== "file:/" &&
|
||||||
|
url.substr(0, 7).toLocaleLowerCase() !== "http://" &&
|
||||||
url.substr(0, 8).toLocaleLowerCase() !== "https://" &&
|
url.substr(0, 8).toLocaleLowerCase() !== "https://" &&
|
||||||
url.substr(0, 7).toLocaleLowerCase() !== "hifi://") {
|
url.substr(0, 7).toLocaleLowerCase() !== "hifi://") {
|
||||||
finalizedUrl = "hifi://" + url;
|
finalizedUrl = "hifi://" + url;
|
||||||
|
|
Loading…
Reference in a new issue