Closed CertainPerformance closed 5 years ago
Thanks for this. I'm accepting the fix, but ignoring the pull request, because the change needs to be made in src\autoreviewcomments.user.js, not dist\autoreviewcomments.user.js
It's a bit confusing, but see: https://github.com/Benjol/SE-AutoReviewComments/wiki/Building
The initial call to
_internalInjector
needs the second parameter,retryCount
, to start at 0, notundefined
, otherwise, if the process doesn't succeed, the recursive call of(triggerElement, retryCount + 1);
will result inundefined + 1
orNaN
forretryCount
and an endless recursive loop, because theif (20 <= retryCount) return;
condition never passes.