fix: mime type for jpg/jpeg files

This commit is contained in:
13574
2023-09-10 08:55:29 +08:00
parent b8e6679faa
commit 3fe43184c2

View File

@@ -41,7 +41,7 @@ object ClipboardUtils {
private fun mimeTypeToExtName(mimeType: String) = when (mimeType) {
"image/png" -> "png"
"image/jpeg" -> "png"
"image/jpeg" -> "jpeg"
"image/gif" -> "gif"
else -> throw IllegalArgumentException("$mimeType is not supported")
}