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 4e1d551 commit de18452Copy full SHA for de18452
src/components/PrintSyllabus.tsx
@@ -88,9 +88,9 @@ export const PrintSyllabus = ({ blockData }: { blockData: BlockResponse }) => {
88
const iframe = document.createElement('iframe');
89
iframe.setAttribute("style", "display:none");
90
document.body.appendChild(iframe);
91
- iframe.contentWindow.open();
92
- iframe.contentWindow.write(srcdoc);
93
- iframe.contentWindow.close();
+ iframe.contentWindow.document.open();
+ iframe.contentWindow.document.write(srcdoc);
+ iframe.contentWindow.document.close();
94
iframe.contentWindow.print();
95
};
96
0 commit comments