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); commerce.buy(itemId, itemPrice, true);
} }
} else { } 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; anchors.right: parent.right;
text: root.isWearable ? "Wear It" : "Rez It" text: root.isWearable ? "Wear It" : "Rez It"
onClicked: { onClicked: {
if (urlHandler.canHandleUrl(root.itemHref)) { sendToScript({method: 'checkout_rezClicked', itemHref: root.itemHref, isWearable: root.isWearable});
urlHandler.handleUrl(root.itemHref);
}
rezzedNotifContainer.visible = true; rezzedNotifContainer.visible = true;
rezzedNotifContainerTimer.start(); rezzedNotifContainerTimer.start();
} }