Skip to content

Commit 6932387

Browse files
committed
fix(shared): align preview exports and picker expectations
1 parent c89b799 commit 6932387

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

‎apps/desktop/src/ipc/methods/window.test.ts‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,21 @@ describe("pickProjectFavicon", () => {
287287
filters: [
288288
{
289289
name: "Images",
290-
extensions: ["avif", "gif", "ico", "jpeg", "jpg", "png", "svg", "webp", "icns"],
290+
extensions: [
291+
"avif",
292+
"bmp",
293+
"gif",
294+
"ico",
295+
"heic",
296+
"jpeg",
297+
"jpg",
298+
"png",
299+
"svg",
300+
"tif",
301+
"tiff",
302+
"webp",
303+
"icns",
304+
],
291305
},
292306
],
293307
},

‎packages/shared/src/filePreview.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function isWorkspaceFontPreviewPath(path: string): boolean {
191191
return /\.(ttf|otf|woff2?)$/i.test(path);
192192
}
193193

194-
export function audioMimeTypeFromExtension(extension: string): string | null {
194+
function audioMimeTypeFromExtension(extension: string): string | null {
195195
if (!/^\.[a-z0-9-]+$/i.test(extension)) return null;
196196
return AUDIO_MIME_TYPE_BY_EXTENSION.get(extension.toLowerCase()) ?? null;
197197
}

0 commit comments

Comments
 (0)