From 986027563e4b397116244b6b8cbd9dc4e6397194 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Wed, 23 Jul 2025 03:49:46 +0000 Subject: [PATCH] cleanup: remove CORS transformation --- src/libs/util.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/libs/util.ts b/src/libs/util.ts index 5f169778..4413f995 100644 --- a/src/libs/util.ts +++ b/src/libs/util.ts @@ -979,24 +979,3 @@ export async function importFromMnemonic( }); } } - -/** - * Legacy function name maintained for compatibility. - * Now simply returns the original URL since CORS headers have been disabled - * to allow images from any domain. - * - * @param imageUrl - The original image URL - * @returns The original image URL unchanged - * - * @deprecated CORS restrictions have been removed - images load directly from any domain - */ -export function transformImageUrlForCors( - imageUrl: string | undefined | null, -): string { - if (!imageUrl) return ""; - - // CORS headers disabled - all images load directly from any domain - // This enables the community nature of Time Safari where users can - // share images from any website without restrictions - return imageUrl; -}