Skip to content

Commit

Permalink
feat: async secureDeliveryProxyUrlResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Jun 21, 2024
1 parent 9181cea commit e9e1a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/CloudImageEditor/src/CloudImageEditorBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class CloudImageEditorBlock extends Block {
}

try {
const cdnUrl = createCdnUrl(this.$['*originalUrl'], createCdnUrlModifiers('json'));
const cdnUrl = await this.proxyUrl(createCdnUrl(this.$['*originalUrl'], createCdnUrlModifiers('json')));
const json = await fetch(cdnUrl).then((response) => response.json());

const { width, height } = /** @type {{ width: number; height: number }} */ (json);
Expand Down

0 comments on commit e9e1a8b

Please sign in to comment.