mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix(app): do not crash when the browser translates the page (#2624)
This commit is contained in:
1 parent
044a2c101d
commit
d729f641ff
83 files changed
+3774
-1080
No files matched your search
+5
-4
@@ -64,10 +64,11 @@ export function TextualAttachmentCodePanel({
|
||||
data-flx="channel.embeds.attachments.textual-attachment-code-panel.warning-circle-icon"
|
||||
/>
|
||||
<span data-flx="channel.embeds.attachments.textual-attachment-code-panel.span">
|
||||
{previewError?.type === 'size'
|
||||
? i18n._(FILE_IS_TOO_LARGE_FOR_INLINE_PREVIEW_LIMIT_DESCRIPTOR, {previewLimitKb: PREVIEW_LIMIT_KB})
|
||||
: i18n._(UNABLE_TO_LOAD_PREVIEW_DESCRIPTOR)}
|
||||
{previewError?.type === 'network' && previewError.message ? ` ${previewError.message}` : ''}
|
||||
{`${
|
||||
previewError?.type === 'size'
|
||||
? i18n._(FILE_IS_TOO_LARGE_FOR_INLINE_PREVIEW_LIMIT_DESCRIPTOR, {previewLimitKb: PREVIEW_LIMIT_KB})
|
||||
: i18n._(UNABLE_TO_LOAD_PREVIEW_DESCRIPTOR)
|
||||
}${previewError?.type === 'network' && previewError.message ? ` ${previewError.message}` : ''}`}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user