mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Apps protection
This commit is contained in:
parent
1fbc16aae2
commit
b548567f5a
3 changed files with 5 additions and 5 deletions
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue