diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-09-24 15:32:51 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-24 15:32:51 +0200 |
commit | 5112a36a7e490186e6ba07b3e9ec5a362cef1f0e (patch) | |
tree | 473a259d4e8984457efa7a5afa976fa388fb93b9 | |
parent | 7442612a9b6899a52575eac4a27c1a0090f81273 (diff) |
Manage more types for stl and obj
-rw-r--r-- | pages/models/_id/index.vue | 4 |
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); |