cleaaning

This commit is contained in:
Tom Boullay
2026-04-28 10:42:57 +02:00
parent 5e528a90f9
commit d70de8c9a4
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}`;