Language: JavaScript
Label: safe
CWE: CWE-345 \u2014 Insufficient Verification of Data Authenticity
The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.

Code:
function scheduleLivePoll() {
  let ti = parseInt(localStorage.sidekiqTimeInterval) || 5000;
  if (ti < 2000) { ti = 2000 }
  livePollTimer = setTimeout(livePollCallback, ti);
}