Fix rezzing non-JSON marketplace items

This commit is contained in:
Zach Fox 2017-11-15 11:25:18 -08:00
parent 2c51e516eb
commit e8c4878c8f

View file

@ -476,7 +476,9 @@ Rectangle {
commerce.buy(itemId, itemPrice, true);
}
} else {
sendToScript({method: 'checkout_rezClicked', itemHref: root.itemHref, isWearable: root.isWearable});
if (urlHandler.canHandleUrl(itemHref)) {
urlHandler.handleUrl(itemHref);
}
}
}
}
@ -594,9 +596,7 @@ Rectangle {
anchors.right: parent.right;
text: root.isWearable ? "Wear It" : "Rez It"
onClicked: {
if (urlHandler.canHandleUrl(root.itemHref)) {
urlHandler.handleUrl(root.itemHref);
}
sendToScript({method: 'checkout_rezClicked', itemHref: root.itemHref, isWearable: root.isWearable});
rezzedNotifContainer.visible = true;
rezzedNotifContainerTimer.start();
}