minor: quick shortcut to serve-mesh API

This commit is contained in:
Index 2024-09-29 13:55:00 -05:00
parent 70808ced7c
commit 849e2dde84
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,7 @@
const ItemID = window.location.pathname.split('/')[2];
if (window.location.pathname.slice(-6) == "/asset") {
window.location.href = "https://api.polytoria.com/v1/assets/serve-mesh/" + ItemID
}
let ItemModeler = null;
const ItemType = document.querySelector('.row .badge').innerHTML;

View file

@ -63,7 +63,7 @@
},
{
"matches": ["https://polytoria.com/store/**"],
"matches": ["https://polytoria.com/store/**", "https://polytoria.com/store/*/asset"],
"js": ["/js/store/item-view.js"]
},