Skip to content

Commit

Permalink
no-cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Blainegunn committed May 24, 2024
1 parent e0a7f4f commit ccb2103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acrobat/blocks/acom-widget/acom-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ const uploadToAdobe = async (file, progressBarWrapper, progressBar) => {
// throw new Error(`Failed to fetch download URI: ${downloadUriResponse.statusText}`);
// }

const downloadUriResult = await downloadUriResponse.json();
const downloadUri = downloadUriResult.uri;
// const downloadUriResult = await downloadUriResponse.json();
// const downloadUri = downloadUriResult.uri;

// Step 6: Generate Blob URL and Display PDF
const blobUrlStructure = {
source: downloadUri,
source: `${baseApiUrl}/${expiry}/assets/download_uri?asset_uri=${encodeURIComponent(assetUri)}&make_direct_storage_uri=true`,
itemName: filename,
itemType: 'application/pdf',
};
Expand Down

0 comments on commit ccb2103

Please sign in to comment.