mirror of
https://github.com/overte-org/community-apps.git
synced 2025-04-12 23:03:43 +02:00
Type check for metadataScript.src.
This commit is contained in:
parent
1e0fc5e9f5
commit
f25419732b
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