cleaaning

This commit is contained in:
Tom Boullay
2026-04-28 10:42:57 +02:00
parent a259c3d2e2
commit af35150452
11 changed files with 104 additions and 260 deletions
+1 -3
View File
@@ -30,9 +30,7 @@ export async function createSceneDataFromFiles(
}
function getProjectRelativePath(file: File): string {
const relativePath =
(file as File & { webkitRelativePath?: string }).webkitRelativePath ||
file.name;
const relativePath = file.webkitRelativePath || file.name;
if (!relativePath.includes("/")) {
return `/${relativePath}`;