HEX
Server: Apache
System: Linux server 5.4.0-56-generic #62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020 x86_64
User: losadagest (10000)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/aceitunaslosada.com/web/wp-content/plugins/jetpack/3rd-party/debug-bar/debug-bar.js
/* global jQuery, JSON */

( function( $ ) {
	$( document ).ready( function() {
		$( '.jetpack-search-debug-bar .json-toggle-wrap .toggle' ).click( function() {
			var t = $( this ),
				wrap = t.closest( '.json-toggle-wrap' ),
				pre = wrap.find( 'pre' ),
				content = pre.text(),
				isPretty = wrap.hasClass( 'pretty' );

			if ( ! isPretty ) {
				pre.text( JSON.stringify( JSON.parse( content ), null, 2 ) );
			} else {
				content.replace( '\t', '' ).replace( '\n', '' ).replace( ' ', '' );
				pre.text( JSON.stringify( JSON.parse( content ) ) );
			}

			wrap.toggleClass( 'pretty' );
		} );
	} );
} )( jQuery );