code: function onUISetSettings(newSettings) {
      resetPolling(newSettings.Periodical.pollInterval);
  
      pollLog = pollLog.slice(
  	    0,　newSettings.Periodical.pollLogEntryMax );
      localStorage.setItem('pollLog', pollLog);
  
      return newSettings;
  }
docs: Setting value rewriting event for UI
  @param {object} newSettings Settings edited for UI
  @return {object} Settings to save