just whitespace and varname changes

This commit is contained in:
howard-stearns 2018-09-27 18:14:16 -07:00
parent 75de305ec3
commit a6ef25f662

View file

@ -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.");
}