Skip to content

Commit

Permalink
Fixed invalid targets with encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Feb 14, 2024
1 parent 017cde6 commit 9abfd3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/rendering-strategy/image-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function getImageStrategy(
};

const [target, source] = getParsedTargetSelector(canvas, singleImage.target);
if (source.id !== canvas.id) {
if (!(source.id === canvas.id || decodeURIComponent(source.id || '') === (canvas.id || ''))) {
// Skip invalid targets.
continue;
}
Expand Down

0 comments on commit 9abfd3c

Please sign in to comment.