Apps protection

This commit is contained in:
Zach Fox 2018-02-21 11:17:47 -08:00
parent 1fbc16aae2
commit b548567f5a
3 changed files with 5 additions and 5 deletions

View file

@ -135,10 +135,10 @@ Rectangle {
root.itemType = "avatar";
} else if (root.itemHref.indexOf('.json.gz') > -1) {
root.itemType = "contentSet";
} else if (root.itemHref.indexOf('.app.json') > -1) {
root.itemType = "app";
} else if (root.itemHref.indexOf('.json') > -1) {
root.itemType = "entity"; // "wearable" type handled later
} else if (root.itemHref.indexOf('.js') > -1) {
root.itemType = "app";
} else {
console.log("WARNING - Item type is UNKNOWN!");
root.itemType = "entity";

View file

@ -401,10 +401,10 @@ Rectangle {
"wearable";
} else if (model.root_file_url.endsWith('.json.gz')) {
"contentSet";
} else if (model.root_file_url.endsWith('.app.json')) {
"app";
} else if (model.root_file_url.endsWith('.json')) {
"entity";
} else if (model.root_file_url.endsWith('.js')) {
"app";
} else {
"unknown";
}

View file

@ -551,7 +551,7 @@ var selectionDisplay = null; // for gridTool.js to ignore
case 'checkout_rezClicked':
case 'purchases_rezClicked':
if (message.itemType === "app") {
console.log("How did you get here? You can't buy apps yet!");
} else {
rezEntity(message.itemHref, message.itemType);
}