Migrate the more app URL to Overte

Migrate the more app URL to Overte
This commit is contained in:
Alezia Kurdis 2022-02-02 22:36:46 -05:00 committed by GitHub
parent e6b78fdedf
commit bb6872222e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View file

@ -5,8 +5,9 @@
//
// Created by Keb Helion, February 2020.
// Copyright 2020 Vircadia contributors.
// Copyright 2022 Overte e.V.
//
// This script adds a "More Apps" selector to Vircadia to allow the user to add optional functionalities to the tablet.
// This script adds a "More Apps" selector to Overte to allow the user to add optional functionalities to the tablet.
// This application has been designed to work directly from the Github repository.
//
// Distributed under the Apache License, Version 2.0.
@ -56,7 +57,7 @@
var runningScriptJson;
for (var j = 0; j < currentlyRunningScripts.length; j++) {
runningScriptJson = currentlyRunningScripts[j].url;
if (runningScriptJson.indexOf("https://cdn.vircadia.com/community-apps/applications") !== -1) {
if (runningScriptJson.indexOf("https://more.overte.org/applications") !== -1) {
newMessage += "_" + runningScriptJson;
}
}

View file

@ -4,9 +4,10 @@
//
// Created by Keb Helion, February 2020.
// Copyright 2020 Vircadia contributors.
// Copyright 2022 Overte e.V.
//
// App maintained in: https://github.com/vircadia/community-apps
// App copied to: https://github.com/vircadia/vircadia
// App maintained in: https://github.com/overte-org/community-apps
// App copied to: https://github.com/overte-org/overte
//
//
// Distributed under the Apache License, Version 2.0.
@ -54,7 +55,7 @@
var currentPath = window.location.protocol + "//" + window.location.host + window.location.pathname;
var developmentMode = window.location.toString().split("?")[1];
var rootPath;
var metadataScriptSrc = "https://cdn.vircadia.com/community-apps/applications/metadata.js";
var metadataScriptSrc = "https://more.overte.org/applications/metadata.js";
if (developmentMode === "dev") { // Development mode loads locally, if not, load from repo.
console.info("Setting applications to local.")
@ -64,7 +65,7 @@
} else {
console.info("Setting applications to remote URL.")
console.info("Loading metadata remotely.");
rootPath = "https://cdn.vircadia.com/community-apps/applications/";
rootPath = "https://more.overte.org/applications/";
}
//Search
@ -168,7 +169,7 @@
</div>
<hr>
<p class="mainDesc">Want to contribute and add your own app?<br>
Read the <a href="https://cdn.vircadia.com/community-apps/web/index.html">guide</a>!</p>
Read the <a href="https://overte-org.github.io/community-apps/web/index.html">guide</a>!</p>
<script>
function monitorEnter(e) {
var code = (e.keyCode ? e.keyCode : e.which);