docs/gitbook/gitbook-plugin-fontsettings/fontsettings.js
function getThemeId(configName) {
    // Search for plugin configured theme
    var configTheme = $.grep(THEMES, function(theme) {
      return theme.config == configName;
    })[0];
    // Fallback to default theme
    return !!configTheme ? configTheme.id : 0;
  }
function getThemeId(configName) {
    // Search for plugin configured theme
    var configTheme = $.grep(THEMES, function(theme) {
      return theme.config == configName;
    })[0];
    // Fallback to default theme
    return !!configTheme ? configTheme.id : 0;
  }
function getThemeId ( configName ) { // Search for plugin configured theme var configTheme = $ . grep ( THEMES , function ( theme ) { return theme . config == configName ; } ) [ 0 ] ; // Fallback to default theme return ! ! configTheme ? configTheme . id : 0 ; }
Return the correct id for a theme config key Default to first theme
Return the correct id for a theme config key Default to first theme