modules/settings/ui-settings.js
/**
   * Handle button click to reset default settings
   * @param event {Event}   The initial button click event
   * @private
   */
Handle button click to reset default settings
@param event {Event}   The initial button click event
@private
Handle button click to reset default settings @param event { Event } The initial button click event @private
_onResetDefaults(event) {
    event.preventDefault();
    const button = event.currentTarget;
    const form = button.form;
    for (let [k, v] of game.settings.settings.entries()) {
      if (v.config) {
        let input = form[k];
        if (input.type === "checkbox") input.checked = v.default;
        else if (input) input.value = v.default;
      }
    }
  }
_onResetDefaults ( event ) { event . preventDefault ( ) ; const button = event . currentTarget ; const form = button . form ; for ( let [ k , v ] of game . settings . settings . entries ( ) ) { if ( v . config ) { let input = form [ k ] ; if ( input . type === "checkbox" ) input . checked = v . default ; else if ( input ) input . value = v . default ; } } }
Handle button click to reset default settings
 @param event {Event}   The initial button click event
 @private
Handle button click to reset default settings @param event { Event } The initial button click event @private