Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Set crossOrigin to anonymous for image loading

Richie McIlroy8a07120fbf01
diff --git a/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts b/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts
index 7d53365a2..0ca75cfa8 100644
--- a/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts
+++ b/apps/desktop/src/routes/screenshot-editor/useScreenshotExport.ts
@@ -194,6 +194,7 @@ export function useScreenshotExport() {
ctx.drawImage(frame.bitmap, 0, 0);
} else {
const img = new Image();
+ img.crossOrigin = "anonymous";
img.src = convertFileSrc(editorCtx.path);
await new Promise((resolve, reject) => {
img.onload = resolve;