kodeklubben / codeclub-viewer

A viewer to display codeclub lessons
4 stars 17 forks source link

Remove iframe from DOM #635

Open Skagevang opened 5 years ago

Skagevang commented 5 years ago

If you go to the Microbit snake lesson and go back after when the blocks are being rendered, the iframe is still in the DOM. And when you go to another microbit lesson, those blocks will be the blocks that is from the snake lesson.

I think the solution is to be sure there isn't an iframe in the DOM if we are not in a lesson

NorwegianKiwi commented 4 years ago

To clearify: This happens if you leave a microbit page where some blocks have not finished rendering, and go to another microbit page. Then the previously unrendered blocks from the other page will appear (incorrectly) on this new page.