summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/timeline-renderer.ts
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-08-31 19:57:50 +0200
committerMaze Winther <mazewinther@gmail.com>2025-08-31 19:57:50 +0200
commit2c5d5dc23437e288d7e6936e0337583dc8dbc782 (patch)
tree187942264d1237a8f5c6c0a13bb94c7cc05971f4 /apps/web/src/lib/timeline-renderer.ts
parent46a74b30ba3a3ff9b499677bb5d63ea3befea56b (diff)
downloadopencut-2c5d5dc23437e288d7e6936e0337583dc8dbc782.tar.gz
bunch of small improvements
Diffstat (limited to 'apps/web/src/lib/timeline-renderer.ts')
-rw-r--r--apps/web/src/lib/timeline-renderer.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/web/src/lib/timeline-renderer.ts b/apps/web/src/lib/timeline-renderer.ts
index 4d00129c..b2650b7c 100644
--- a/apps/web/src/lib/timeline-renderer.ts
+++ b/apps/web/src/lib/timeline-renderer.ts
@@ -58,13 +58,9 @@ export async function renderTimelineFrame({
ctx.fillRect(0, 0, canvasWidth, canvasHeight);
}
- // If backgroundColor is a CSS gradient string, draw it using JS (no foreignObject) to avoid CORS tainting
+ // If backgroundColor is a CSS gradient string, draw it
if (backgroundColor && backgroundColor.includes("gradient")) {
- try {
- drawCssBackground(ctx, canvasWidth, canvasHeight, backgroundColor);
- } catch {
- // best-effort; ignore failures
- }
+ drawCssBackground(ctx, canvasWidth, canvasHeight, backgroundColor);
}
const scaleX = projectCanvasSize ? canvasWidth / projectCanvasSize.width : 1;