1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Clipper: Fixes #1682: Do not clip elements that should be hidden

This commit is contained in:
Laurent Cozic
2019-06-24 00:00:11 +01:00
parent a6c407b62b
commit d79089aea3
2 changed files with 30 additions and 5 deletions

View File

@@ -506,7 +506,7 @@ class Api {
// If we could not find the file extension from the URL, try to get it
// now based on the Content-Type header.
if (!fileExt) imagePath = this.tryToGuessImageExtFromMimeType_(response, imagePath);
if (!fileExt) imagePath = await this.tryToGuessImageExtFromMimeType_(response, imagePath);
}
return imagePath;
} catch (error) {