Skip to content

Commit

Permalink
fix: iframe finished loading event
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed Apr 2, 2024
1 parent 202a45a commit 4dc9e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/js/ui/components/print-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default (): m.Component<PrintPreviewProps> => {
}

doc.open();
doc.write(preCss + fixed + `<script>parent.postMessage({ type: 'done', id: ${state.id}}, '*')</script>` + post);
doc.write(preCss + fixed + `<script>parent.postMessage({ type: 'done', id: '${state.id}'}, '*');</script>` + post);
doc.close();
};
}
Expand Down

0 comments on commit 4dc9e46

Please sign in to comment.