mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
removed uneeded line of code
This commit is contained in:
@@ -280,7 +280,6 @@ function handleAttachmentDrop(codeEditor, storageKey, noteKey, dropEvent) {
|
||||
promise = Promise.all(Array.from(dropEvent.dataTransfer.files).map(file => {
|
||||
var filePath = file.path
|
||||
if (file.type.startsWith('image')) {
|
||||
var a = getOrientation(file)
|
||||
if (file.type === 'image/gif' || file.type === 'image/svg+xml') {
|
||||
return copyAttachment(file.path, storageKey, noteKey).then(fileName => ({
|
||||
fileName,
|
||||
@@ -290,7 +289,7 @@ function handleAttachmentDrop(codeEditor, storageKey, noteKey, dropEvent) {
|
||||
} else {
|
||||
return getOrientation(file)
|
||||
.then((orientation) => {
|
||||
if (orientation === -1) {
|
||||
if (orientation === -1) { // The image rotation is correct and does not need adjustment
|
||||
return copyAttachment(file.path, storageKey, noteKey)
|
||||
} else {
|
||||
return fixRotate(file).then(data => copyAttachment({
|
||||
|
||||
Reference in New Issue
Block a user