diff --git a/client/src/templates/Challenges/utils/frame.js b/client/src/templates/Challenges/utils/frame.js index 952921d0f9..b7999472a7 100644 --- a/client/src/templates/Challenges/utils/frame.js +++ b/client/src/templates/Challenges/utils/frame.js @@ -13,13 +13,18 @@ const testId = 'fcc-test-frame'; // this also allows in-page anchors to work properly // rather than load another instance of the learn -// window.onerror is added here to catch any errors thrown during the building -// of the frame. +// window.onerror is added here to report any errors thrown during the building +// of the frame. React dom errors already appear in the console, so onerror +// does not need to pass them on to the default error handler. const createHeader = (id = mainId) => `