Skip to content

Commit

Permalink
got rid of the load event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
srietkerk committed Jan 5, 2024
1 parent 07a62fd commit 9ed805e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion teachertool/src/services/makecodeEditorService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const setEditorRef = (ref: HTMLIFrameElement | null) => {
if (ref) {
makecodeEditorRef = ref;
window.addEventListener("message", onMessageReceived);
makecodeEditorRef.addEventListener("load", () => {console.log("loaded")});
} else {
makecodeEditorRef = undefined;
window.removeEventListener("message", onMessageReceived);
Expand Down

0 comments on commit 9ed805e

Please sign in to comment.