Timothy J. Baek 9 months ago
parent
commit
b21af908a7
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/lib/components/chat/Artifacts.svelte

+ 6 - 2
src/lib/components/chat/Artifacts.svelte

@@ -61,12 +61,16 @@
 								body {
 								body {
 									background-color: white; /* Ensure the iframe has a white background */
 									background-color: white; /* Ensure the iframe has a white background */
 								}
 								}
+
+								${cssContent}
 							</${''}style>
 							</${''}style>
-							${cssContent}
                         </head>
                         </head>
                         <body>
                         <body>
                             ${htmlContent}
                             ${htmlContent}
-                            ${jsContent}
+
+							<${''}script>
+                            	${jsContent}
+							</${''}script>
                         </body>
                         </body>
                         </html>
                         </html>
                     `;
                     `;