mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Type check for metadataScript.src.
This commit is contained in:
parent
bb3da99856
commit
cb4407532d
1 changed files with 2 additions and 2 deletions
|
@ -28,13 +28,13 @@
|
|||
|
||||
if (currentPath.includes("kasenvr.github.io") || !currentPath.includes("file:/")) { // Loading app from repo or filesystem.
|
||||
rootPath = currentPath.replace("more/more.html", "applications/");
|
||||
if (metadataScript.src != "../applications/metadata.js") {
|
||||
if (metadataScript.src !== "../applications/metadata.js") {
|
||||
metadataScript.src = "../applications/metadata.js";
|
||||
console.info("Loading apps and metadata locally.");
|
||||
}
|
||||
} else {
|
||||
rootPath = "https://kasenvr.github.io/community-apps/applications/";
|
||||
if (metadataScript.src != "https://kasenvr.github.io/community-apps/applications/metadata.js") {
|
||||
if (metadataScript.src !== "https://kasenvr.github.io/community-apps/applications/metadata.js") {
|
||||
metadataScript.src = "https://kasenvr.github.io/community-apps/applications/metadata.js";
|
||||
console.info("Loading apps and metadata remotely.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue