Skip to content

Commit c3f8475

Browse files
committed
fix: fix sticker issue for export #4
1 parent af97519 commit c3f8475

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

apps/web/src/services/renderer/nodes/image-node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class ImageNode extends VisualNode<ImageNodeParams> {
1616

1717
private async load() {
1818
const image = new Image();
19+
image.crossOrigin = "anonymous";
1920
this.image = image;
2021

2122
await new Promise<void>((resolve, reject) => {

apps/web/src/services/renderer/nodes/sticker-node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export class StickerNode extends VisualNode<StickerNodeParams> {
1717

1818
private async load() {
1919
const image = new Image();
20+
image.crossOrigin = "anonymous";
2021
this.image = image;
2122
const color = this.params.color
2223
? `&color=${encodeURIComponent(this.params.color)}`

0 commit comments

Comments
 (0)