Skip to content

Commit

Permalink
docs: change code doc
Browse files Browse the repository at this point in the history
  • Loading branch information
daphnesmit committed Feb 14, 2022
1 parent 61bbfbd commit b2d81ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/cleanUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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?.();
};

Expand Down

0 comments on commit b2d81ce

Please sign in to comment.