function loadSettingsInternal()

in js/utils.js [169:184]


function loadSettingsInternal() {
  let apiKey = getFromStorage("api-key");
  let lastDate = getFromStorage("lastdate");

  NeedInfoConfig.api_key = (apiKey == null) ? "" : apiKey;
  NeedInfoConfig.lastdate = lastDate; // might be null or empty string
  NeedInfoConfig.ignoremyni = getFromStorage("ignoremyni") == (null || 'false') ? false : true;
  NeedInfoConfig.saveoptions = getFromStorage("save") == (null || 'false') ? false : true;
  NeedInfoConfig.targetnew = getFromStorage("target") == (null || 'false') ? false : true;

  console.log('storage key:', NeedInfoConfig.api_key);
  console.log('lastdate:', NeedInfoConfig.lastdate);
  console.log('ignore:', NeedInfoConfig.ignoremyni);
  console.log('persist:', NeedInfoConfig.saveoptions);
  console.log('targets:', NeedInfoConfig.targetnew);
}