Skip to content

Commit

Permalink
fix: problem with image viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
lazerblasters committed Sep 13, 2021
1 parent 10e19ab commit 20c9499
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const FilePreview = forwardRef<View, IFilePreviewProps>(

const render = useCallback(() => {
if (file.filetype.toLowerCase().startsWith('image')) {
return <ScreenshotPreview uri={file.filepath} />;
return <ScreenshotPreview uri={`file://${file.filepath}`} />;
}

if (!file.content) {
Expand Down

0 comments on commit 20c9499

Please sign in to comment.