Skip to content

Commit

Permalink
feat: Expose fileToArrayBuffer from ActionsMenu actions helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Sep 18, 2024
1 parent 1f5deb0 commit 72b6e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/ActionsMenu/Actions/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const addImageToPdf = async (pdfDoc, file) => {
* @param {File} file
* @returns {Promise<ArrayBuffer>}
*/
const fileToArrayBuffer = async file => {
export const fileToArrayBuffer = async file => {
if ('arrayBuffer' in file) return await file.arrayBuffer()

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 72b6e21

Please sign in to comment.