Add support for displaying images (#6987)

This commit is contained in:
Marvin A. Ruder 2023-06-16 16:06:18 +02:00 committed by GitHub
parent 11c923842a
commit 95807fa7ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 39 additions and 2 deletions

View file

@ -53,6 +53,7 @@ const initial: uiState = Immutable<Mutable<uiState>>({
fontSmoothingOverride: 'antialiased',
fontWeight: 'normal',
fontWeightBold: 'bold',
imageSupport: true,
lineHeight: 1,
letterSpacing: 0,
css: '',
@ -281,6 +282,10 @@ const reducer: IUiReducer = (state = initial, action) => {
};
}
if (config.imageSupport !== undefined) {
ret.imageSupport = config.imageSupport;
}
ret._lastUpdate = now;
return ret;