The error is thrown in the minified JS file: in class ka, in method setState, called via method setConnectionStatus; the const i, which is a timer ID from setInterval(s, 1e3) (or setInterval(s, 1000)), is defined after the call s(), which uses i in the statement s > t && clearInterval(i).
I realize, this may be a minifier bug, so close this issue if it turns out that the order of the const binding and its usage is correct in the source. Do consider reporting a bug in the minifier you’re using and notify us here, if that’s the case.
Steps to reproduce
This is a general code quality issue or a minifier bug. I don’t know exact steps to reproduce; I just randomly saw this error in the browser console after logging back in after a LightDM session lock (which performs some form of a system suspend).
Device info
Telegram WebK 0.5.8, Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0, Linux x86_64
Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.