From 59fc7b7975faf05d372af785f6b4d87031a5b0d6 Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 22 Jul 2026 16:57:06 -0400 Subject: [PATCH] fix(database): escape in embed block template literal The tag inside a JS template literal was prematurely closing the outer `; + if(b.embed_type==='collection')return `
Loading database...
<`+`script>setTimeout(function(){var el=document.getElementById('inline-db-${b.collection_id}');if(el&&window.FlowDeckDB)window.FlowDeckDB.renderInto(el,${b.collection_id},null);},50);<`+`/script>
`; if(b.embed_type==='pdf')return `

Failed to load PDF

Open in new tab →
`; if(b.embed_type==='download'){ var sz=b.file_size||0;var szStr=sz<1024?sz+' B':sz<1048576?(sz/1024).toFixed(1)+' KB':(sz/1048576).toFixed(1)+' MB';