Skip to content

Commit de18452

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! feat: Syllabus page for learner MFE
1 parent 4e1d551 commit de18452

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/PrintSyllabus.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ export const PrintSyllabus = ({ blockData }: { blockData: BlockResponse }) => {
8888
const iframe = document.createElement('iframe');
8989
iframe.setAttribute("style", "display:none");
9090
document.body.appendChild(iframe);
91-
iframe.contentWindow.open();
92-
iframe.contentWindow.write(srcdoc);
93-
iframe.contentWindow.close();
91+
iframe.contentWindow.document.open();
92+
iframe.contentWindow.document.write(srcdoc);
93+
iframe.contentWindow.document.close();
9494
iframe.contentWindow.print();
9595
};
9696

0 commit comments

Comments
 (0)