We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8dd38 commit 90b40d0Copy full SHA for 90b40d0
src/index.tsx
@@ -152,12 +152,12 @@ async function writePDFAsync(base64: string) {
152
export async function removeFilesAsync(): Promise<void> {
153
const { exists: htmlPathExist } = await getInfoAsync(htmlPath)
154
if (htmlPathExist) {
155
- await deleteAsync(htmlPath)
+ await deleteAsync(htmlPath, { idempotent: true })
156
}
157
158
const { exists: pdfPathExist } = await getInfoAsync(pdfPath)
159
if (pdfPathExist) {
160
- await deleteAsync(pdfPath)
+ await deleteAsync(pdfPath, { idempotent: true })
161
162
163
0 commit comments