initialState()

in src/GitHubStatusDisplay.js [135:158]


  initialState() {
    const prefs_str = localStorage.getItem("prefs2");
    let prefs = {};
    if (prefs_str) {
      prefs = JSON.parse(prefs_str);
    }
    if (!("showNotifications" in prefs))
      prefs["showNotifications"] = !isMobile();
    if (!("groupJobs" in prefs)) prefs["groupJobs"] = true;
    let jobNameFilter = this.props.jobNameFilter || "";
    return {
      fetchedBuilds: false,
      fetchError: false,
      builds: [],
      lastUpdateDate: null,
      known_jobs: [],
      showGroups: [],
      currentTime: new Date(),
      updateTime: new Date(0),
      showNotifications: prefs.showNotifications,
      groupJobs: jobNameFilter.length === 0 ? prefs.groupJobs : false,
      jobNameFilter: jobNameFilter,
    };
  }