function displayNetworkErrorContent_(contentNode, report) {
    var contentSections =
        addContentSections_(contentNode, 'Show raw report', 'Hide raw report');

    var body = ensureObject_(report.body);
    addTextNode(contentSections.summary, body.type);
    // Only show the status code if it's present and not 0.
    if (body['status-code'])
      addTextNode(
          contentSections.summary, ' (' + report.body['status-code'] + ')');

    addNodeWithText(
        contentSections.detail, 'pre', JSON.stringify(report, null, '  '));
  }
/**
   * Displays format-specific detail for Network Error Logging reports.
   * REQUIRES: |report| must be an object
   */
Displays format-specific detail for Network Error Logging reports.
REQUIRES: |report| must be an object
Displays format - specific detail for Network Error Logging reports . REQUIRES : |report| must be an object
function displayNetworkErrorContent_(contentNode, report) {
    var contentSections =
        addContentSections_(contentNode, 'Show raw report', 'Hide raw report');
    var body = ensureObject_(report.body);
    addTextNode(contentSections.summary, body.type);
    if (body['status-code'])
      addTextNode(
          contentSections.summary, ' (' + report.body['status-code'] + ')');
    addNodeWithText(
        contentSections.detail, 'pre', JSON.stringify(report, null, '  '));
  }
function displayNetworkErrorContent_ ( contentNode , report ) { var contentSections = addContentSections_ ( contentNode , 'Show raw report' , 'Hide raw report' ) ; var body = ensureObject_ ( report . body ) ; addTextNode ( contentSections . summary , body . type ) ; if ( body [ 'status-code' ] ) addTextNode ( contentSections . summary , ' (' + report . body [ 'status-code' ] + ')' ) ; addNodeWithText ( contentSections . detail , 'pre' , JSON . stringify ( report , null , '  ' ) ) ; }
Displays format-specific detail for Network Error Logging reports.
Displays format - specific detail for Network Error Logging reports .
// Only show the status code if it's present and not 0.