mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-01 07:28:31 +00:00
4.75.4
* Added: Setting to hide the border around streams in the directory that have guest stars. * Fixed: Issue with chat alternating backgrounds not appearing correctly after a Twitch update. Some settings may still not be working (notably: separators) * Fixed: Issue where FFZ could be injected into a page twice, breaking basically everything. * Experiments: Disable the EMQX experiment. It's not working out.
This commit is contained in:
parent
efd6d2fa42
commit
1cacacaecb
17 changed files with 134 additions and 30 deletions
|
@ -517,7 +517,7 @@ export function highlightJson(object: any, pretty = false, depth = 1, max_depth
|
|||
return `<span class="ffz-ct--literal" depth="${depth}">${object}</span>`;
|
||||
|
||||
if ( typeof object === 'string' )
|
||||
return `<span class=ffz-ct--string depth="${depth}">"${sanitize(object)}"</span>`;
|
||||
return `<span class=ffz-ct--string depth="${depth}">${sanitize(JSON.stringify(object))}</span>`;
|
||||
|
||||
if ( Array.isArray(object) )
|
||||
return `<span class="ffz-ct--obj-open" depth="${depth}">[</span>`
|
||||
|
@ -535,7 +535,7 @@ export function highlightJson(object: any, pretty = false, depth = 1, max_depth
|
|||
|
||||
if ( pretty )
|
||||
out.push(`\n${indent_inner}`);
|
||||
out.push(`<span class="ffz-ct--obj-key" depth="${depth}">"${sanitize(key)}"</span><span class="ffz-ct--obj-key-sep" depth="${depth}">: </span>`);
|
||||
out.push(`<span class="ffz-ct--obj-key" depth="${depth}">${sanitize(JSON.stringify(key))}</span><span class="ffz-ct--obj-key-sep" depth="${depth}">: </span>`);
|
||||
out.push(highlightJson(val, pretty, depth + 1, max_depth));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue