mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
commit
4e74f6baf3
1 changed files with 5 additions and 1 deletions
|
@ -36,9 +36,13 @@ export default defineEventHandler(async (event) => {
|
|||
]
|
||||
|
||||
if (body.image?.data && body.image?.type) {
|
||||
let extension = body.image.type.split('/')[1]
|
||||
if (extension === 'svg+xml') {
|
||||
extension = 'svg'
|
||||
}
|
||||
files.push(
|
||||
{
|
||||
path: `src/projects/${id}/logo.${body.image.type.split('/')[1]}`,
|
||||
path: `src/projects/${id}/logo.${extension}`,
|
||||
content: body.image.data,
|
||||
encoding: 'base64',
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue