From 849e2dde84a8f4e27d030a8f6e012d71905a3022 Mon Sep 17 00:00:00 2001 From: Index Date: Sun, 29 Sep 2024 13:55:00 -0500 Subject: [PATCH] minor: quick shortcut to serve-mesh API --- js/store/item-view.js | 3 +++ manifest.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/store/item-view.js b/js/store/item-view.js index 41ee256..46348e3 100755 --- a/js/store/item-view.js +++ b/js/store/item-view.js @@ -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; diff --git a/manifest.json b/manifest.json index 22bb154..94420fb 100644 --- a/manifest.json +++ b/manifest.json @@ -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"] },