Skip to content

Commit

Permalink
fix sharing extension js
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyEdwards committed Aug 6, 2024
1 parent ee577dd commit 4064af7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ actual object ExternalServices {
val blob = it.second

val type = blob.type.split("/").lastOrNull() ?: "png"
val fileName = if (name.endsWith(".$type")) name else "${name}.${type}"
val fileName = if (name.contains(".")) name else "${name}.${type}"

File(
fileBits = arrayOf(blob),
Expand Down

0 comments on commit 4064af7

Please sign in to comment.