Skip to content

Commit 53ff693

Browse files
authored
Merge pull request #2852 from Aaron-Bird/bug-gif
[Fix] GIFs don't animate
2 parents 885f656 + 8061390 commit 53ff693

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

browser/main/lib/dataApi/attachmentManagement.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@ function handleAttachmentDrop (codeEditor, storageKey, noteKey, dropEvent) {
266266
const originalFileName = path.basename(filePath)
267267
const fileType = file['type']
268268
const isImage = fileType.startsWith('image')
269+
const isGif = fileType.endsWith('gif')
269270
let promise
270-
if (isImage) {
271+
if (isImage && !isGif) {
271272
promise = fixRotate(file).then(base64data => {
272273
return copyAttachment({type: 'base64', data: base64data, sourceFilePath: filePath}, storageKey, noteKey)
273274
})

0 commit comments

Comments
 (0)