mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 03:40:20 +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() {
|
||||
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
|
||||
openWallet();
|
||||
var ALLOWANCE_FOR_EVENT_BRIDGE_SETUP = 0;
|
||||
Script.setTimeout(function () {
|
||||
ui.tablet.sendToQml({
|
||||
method: 'updateWalletReferrer',
|
||||
referrer: cta
|
||||
referrer: referrer
|
||||
});
|
||||
}, ALLOWANCE_FOR_EVENT_BRIDGE_SETUP);
|
||||
}
|
||||
|
||||
function onMarketplaceOpen(cta) {
|
||||
function onMarketplaceOpen(referrer) {
|
||||
if (Account.loggedIn && walletNeedsSetup()) {
|
||||
if (cta) {
|
||||
setupWallet(cta);
|
||||
if (referrer) {
|
||||
setupWallet(referrer);
|
||||
} else {
|
||||
print("WARNING: opening marketplace to", url, "without wallet setup.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue