mirror of
https://github.com/overte-org/overte.git
synced 2025-07-16 14:56:46 +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
|
@ -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