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:
  constructor(el, options) {
    super(el, options);
    let d = parseInt(localStorage.sidekiqTimeInterval) || 5000;
    if (d < 2000) { d = 2000; }
    this.delay = d
    this.startPolling();
    document.addEventListener("interval:update", this.handleUpdate.bind(this));
  }