1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 16:38:31 +00:00
* Added: Option to only adjust the player volume by scrolling when holding the right-mouse button. (Closes #954)
* API Added: Support for rendering badges with non-image content.
This commit is contained in:
SirStendec 2021-02-17 02:08:21 -05:00
parent ccef06ef7b
commit 165e17c014
5 changed files with 139 additions and 41 deletions

View file

@ -581,8 +581,14 @@ export class TranslationManager extends Module {
return;
}
if ( typeof ast === 'object' && ast.v )
out[ast.v] = shallow_copy(get(ast.v, options));
if ( typeof ast === 'object' && ast.v ) {
const val = get(ast.v, options);
// Skip React objects.
if ( val && val['$$typeof'] )
return;
out[ast.v] = shallow_copy(val);
}
}