1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #2852 from Aaron-Bird/bug-gif

[Fix] GIFs don't animate
This commit is contained in:
Junyoung Choi
2019-02-04 12:25:28 +09:00
committed by GitHub

View File

@@ -266,8 +266,9 @@ function handleAttachmentDrop (codeEditor, storageKey, noteKey, dropEvent) {
const originalFileName = path.basename(filePath)
const fileType = file['type']
const isImage = fileType.startsWith('image')
const isGif = fileType.endsWith('gif')
let promise
if (isImage) {
if (isImage && !isGif) {
promise = fixRotate(file).then(base64data => {
return copyAttachment({type: 'base64', data: base64data, sourceFilePath: filePath}, storageKey, noteKey)
})