From d8fcd713d33df7d89e271c735ae72fa19c7bb9fa Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 15 Nov 2023 15:55:10 +0100 Subject: [PATCH] improve download button --- frontend/src/lib/components/apps/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/apps/utils.ts b/frontend/src/lib/components/apps/utils.ts index d6621967b6..dcc0c462da 100644 --- a/frontend/src/lib/components/apps/utils.ts +++ b/frontend/src/lib/components/apps/utils.ts @@ -15,7 +15,7 @@ import type { export const BG_PREFIX = 'bg_' export function migrateApp(app: App) { - (app?.hiddenInlineScripts ?? []).forEach((x) => { + ;(app?.hiddenInlineScripts ?? []).forEach((x) => { if (x.type == undefined) { //@ts-ignore x.type = 'runnableByName' @@ -359,7 +359,7 @@ export function transformBareBase64IfNecessary(source: string | undefined) { if (!source) { return source } - if (source.startsWith('data:') || !source.includes(',')) { + if (source.startsWith('data:') || source.includes(',')) { return source } else { return `data:application/octet-stream;base64,${source}`