From cb4407532d6e107a2b63dd7666e5412ab769fede Mon Sep 17 00:00:00 2001 From: Kasen IO Date: Fri, 13 Mar 2020 10:09:33 -0400 Subject: [PATCH] Type check for metadataScript.src. --- scripts/system/more/more.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/system/more/more.html b/scripts/system/more/more.html index 760173afeb..c0cd9aca74 100644 --- a/scripts/system/more/more.html +++ b/scripts/system/more/more.html @@ -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."); }