From b2d81ce86dafd3589f98da8664478b42fa21de16 Mon Sep 17 00:00:00 2001 From: Daphne Smit Date: Mon, 14 Feb 2022 15:57:34 +0100 Subject: [PATCH] docs: change code doc --- src/utils/cleanUp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/cleanUp.ts b/src/utils/cleanUp.ts index 99d27f9..eb30d04 100644 --- a/src/utils/cleanUp.ts +++ b/src/utils/cleanUp.ts @@ -10,7 +10,6 @@ export function cleanUp(config: ExtendedConfig) { // If preloading pdf files, clean blob url if (onLoadingStart && typeof printable === 'string') window.URL.revokeObjectURL(printable); - // Run onPrintDialogClose callback let event = 'mouseover'; if (Browser.isChrome || Browser.isFirefox) { @@ -26,6 +25,7 @@ export function cleanUp(config: ExtendedConfig) { const iframe = document.getElementById(frameId); setTimeout(() => iframe?.remove(), Browser.isEdge ? 1000 : 10); + // Run onPrintDialogClose callback onPrintDialogClose?.(); };