// Try to add the explore button, which requires the btoa() function. try { explore.attr( "href", `https://bennadel.github.io/JSON-Explorer/dist/#${ btoa( jsonContent ) }` ); explore.addClass( "bnb-explore--active" ); } catch ( error ) { console.warn( "Explore button could not be rendered." ); console.error( error ); }