Skip to content

Commit

Permalink
cleanup PDF after printing
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx committed Feb 26, 2024
1 parent e8ee236 commit 2dc38b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DuckDuckGo/Tab/Model/Tab+UIDelegate.swift
Original file line number Diff line number Diff line change
@@ -348,7 +348,9 @@ extension Tab: WKUIDelegate, PrintingUserScriptDelegate {
return
}

self.runPrintOperation(printOperation)
self.runPrintOperation(printOperation) { _ in
try? FileManager.default.removeItem(at: url)
}
}
saveWebContent(pdfHUD: pdfHUD, location: .temporary)
return

0 comments on commit 2dc38b7

Please sign in to comment.