From 5112a36a7e490186e6ba07b3e9ec5a362cef1f0e Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Sat, 24 Sep 2022 15:32:51 +0200
Subject: Manage more types for stl and obj

---
 pages/models/_id/index.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'pages/models/_id/index.vue')

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);
-- 
cgit v1.2.3-18-g5258

