summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-24 15:32:51 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-24 15:32:51 +0200
commit5112a36a7e490186e6ba07b3e9ec5a362cef1f0e (patch)
tree473a259d4e8984457efa7a5afa976fa388fb93b9 /pages
parent7442612a9b6899a52575eac4a27c1a0090f81273 (diff)
Manage more types for stl and obj
Diffstat (limited to 'pages')
-rw-r--r--pages/models/_id/index.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/models/_id/index.vue b/pages/models/_id/index.vue
index 1bb322e..e293584 100644
--- a/pages/models/_id/index.vue
+++ b/pages/models/_id/index.vue
@@ -235,10 +235,10 @@ export default {
);
},
isStl(path) {
- return this.checkExt(path, "stl");
+ return this.checkExt(path, "stl") || this.checkExt(path, "sla");
},
isObj(path) {
- return this.checkExt(path, "obj");
+ return this.checkExt(path, "obj") || this.checkExt(path, "octet-stream");
},
getFileName(path) {
return path.split("/").at(-1);