mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
just whitespace and varname changes
This commit is contained in:
parent
75de305ec3
commit
a6ef25f662
1 changed files with 8 additions and 8 deletions
|
@ -88,22 +88,22 @@ function setTabletVisibleInSecondaryCamera(visibleInSecondaryCam) {
|
||||||
function openWallet() {
|
function openWallet() {
|
||||||
ui.open(MARKETPLACE_WALLET_QML_PATH);
|
ui.open(MARKETPLACE_WALLET_QML_PATH);
|
||||||
}
|
}
|
||||||
function setupWallet(cta) {
|
function setupWallet(referrer) {
|
||||||
// Needs to be done within the QML page in order to get access to QmlCommerce
|
// Needs to be done within the QML page in order to get access to QmlCommerce
|
||||||
openWallet();
|
openWallet();
|
||||||
var ALLOWANCE_FOR_EVENT_BRIDGE_SETUP = 0;
|
var ALLOWANCE_FOR_EVENT_BRIDGE_SETUP = 0;
|
||||||
Script.setTimeout(function () {
|
Script.setTimeout(function () {
|
||||||
ui.tablet.sendToQml({
|
ui.tablet.sendToQml({
|
||||||
method: 'updateWalletReferrer',
|
method: 'updateWalletReferrer',
|
||||||
referrer: cta
|
referrer: referrer
|
||||||
});
|
});
|
||||||
}, ALLOWANCE_FOR_EVENT_BRIDGE_SETUP);
|
}, ALLOWANCE_FOR_EVENT_BRIDGE_SETUP);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMarketplaceOpen(cta) {
|
function onMarketplaceOpen(referrer) {
|
||||||
if (Account.loggedIn && walletNeedsSetup()) {
|
if (Account.loggedIn && walletNeedsSetup()) {
|
||||||
if (cta) {
|
if (referrer) {
|
||||||
setupWallet(cta);
|
setupWallet(referrer);
|
||||||
} else {
|
} else {
|
||||||
print("WARNING: opening marketplace to", url, "without wallet setup.");
|
print("WARNING: opening marketplace to", url, "without wallet setup.");
|
||||||
}
|
}
|
||||||
|
@ -670,8 +670,8 @@ var filterText; // Used for updating Purchases QML
|
||||||
function onWebEventReceived(message) {
|
function onWebEventReceived(message) {
|
||||||
message = JSON.parse(message);
|
message = JSON.parse(message);
|
||||||
if (message.type === GOTO_DIRECTORY) {
|
if (message.type === GOTO_DIRECTORY) {
|
||||||
// This is the chooser between marketplaces. Only OUR markteplace
|
// This is the chooser between marketplaces. Only OUR markteplace
|
||||||
// requires/makes-use-of wallet, so doesn't go through openMarketplace bottleneck.
|
// requires/makes-use-of wallet, so doesn't go through openMarketplace bottleneck.
|
||||||
ui.open(MARKETPLACES_URL, MARKETPLACES_INJECT_SCRIPT_URL);
|
ui.open(MARKETPLACES_URL, MARKETPLACES_INJECT_SCRIPT_URL);
|
||||||
} else if (message.type === QUERY_CAN_WRITE_ASSETS) {
|
} else if (message.type === QUERY_CAN_WRITE_ASSETS) {
|
||||||
ui.sendToHtml(CAN_WRITE_ASSETS + " " + Entities.canWriteAssets());
|
ui.sendToHtml(CAN_WRITE_ASSETS + " " + Entities.canWriteAssets());
|
||||||
|
@ -822,7 +822,7 @@ var onQmlMessageReceived = function onQmlMessageReceived(message) {
|
||||||
}
|
}
|
||||||
switch (message.method) {
|
switch (message.method) {
|
||||||
case 'gotoBank':
|
case 'gotoBank':
|
||||||
ui.close();
|
ui.close();
|
||||||
if (Account.metaverseServerURL.indexOf("staging") >= 0) {
|
if (Account.metaverseServerURL.indexOf("staging") >= 0) {
|
||||||
Window.location = "hifi://hifiqa-master-metaverse-staging"; // So that we can test in staging.
|
Window.location = "hifi://hifiqa-master-metaverse-staging"; // So that we can test in staging.
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue