3
0
Fork 0
mirror of https://github.com/JulianGro/overte.git synced 2025-04-29 23:03:00 +02:00

use location.metaverseServerUrl instead of hardcoded value.

This commit is contained in:
howard-stearns 2017-03-15 16:33:23 -07:00
parent f662571cab
commit 84fd17bd88
3 changed files with 4 additions and 2 deletions
interface
resources/qml/hifi
src
scripts/system

View file

@ -27,7 +27,7 @@ Item {
// Properties
property string profileUrl: "";
property string defaultBaseUrl: "http://highfidelity.com";
property string defaultBaseUrl: location.metaverseServerUrl;
property string connectionStatus : ""
property string uuid: ""
property string displayName: ""

View file

@ -2011,6 +2011,7 @@ void Application::initializeUi() {
rootContext->setContextProperty("Scene", DependencyManager::get<SceneScriptingInterface>().data());
rootContext->setContextProperty("Render", _renderEngine->getConfiguration().get());
rootContext->setContextProperty("Reticle", getApplicationCompositor().getReticleInterface());
rootContext->setContextProperty("location", DependencyManager::get<AddressManager>().data());
rootContext->setContextProperty("ApplicationCompositor", &getApplicationCompositor());

View file

@ -299,7 +299,8 @@ function updateUser(data) {
// User management services
//
// These are prototype versions that will be changed when the back end changes.
var METAVERSE_BASE = 'https://metaverse.highfidelity.com';
var METAVERSE_BASE = location.metaverseServerUrl;
function request(url, callback) { // cb(error, responseOfCorrectContentType) of url. General for 'get' text/html/json, but without redirects.
var httpRequest = new XMLHttpRequest();