Prevent CodePen Timeouts

Prevent CodePen Timeouts


@michaelbecker writes:

I have been running into infinite loop problems on my tic-tac-toe challenge, except in my case it’s been false positives. Very frustrating to have a program very intermittently hang and crash because the algorithmic portion of the code sometimes takes too long for the injected infinite loop detection.

I found the following setting to change (i.e. extend) the timeout, in case you want to keep the protection, just give yourself more time:

window.CP.PenTimer.MAX_TIME_IN_LOOP_WO_EXIT = 6000;