Skip to content

Commit 287099c

Browse files
author
miko
committed
Fix .docx crash
1 parent 2db0627 commit 287099c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/redux/selectors/content.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,11 @@ export const makeSelectFileRenderModeForUri = (uri: string) =>
228228
if (['text', 'document', 'script'].includes(mediaType)) {
229229
return RENDER_MODES.DOCUMENT;
230230
}
231+
// @if TARGET='app'
231232
if (extension === 'docx') {
232233
return RENDER_MODES.DOCX;
233234
}
235+
// @endif
234236

235237
// when writing this my local copy of Lbry.getMediaType had '3D-file', but I was receiving model...'
236238
if (['3D-file', 'model'].includes(mediaType)) {

0 commit comments

Comments
 (0)