@blocklet/pages-kit-block-studio 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -209,7 +209,6 @@ function generateComponent(content, _isDev = true) {
|
|
|
209
209
|
// const { name } = content;
|
|
210
210
|
return `import React, { useEffect, useRef } from 'react';
|
|
211
211
|
|
|
212
|
-
const htmlContent = ${htmlContent};
|
|
213
212
|
|
|
214
213
|
export default function HtmlPreview() {
|
|
215
214
|
const iframeRef = useRef(null);
|
|
@@ -237,7 +236,7 @@ export default function HtmlPreview() {
|
|
|
237
236
|
style={{ border: 'none', width: '100%', height: '0px', maxHeight: '100vh' }}
|
|
238
237
|
sandbox="allow-scripts"
|
|
239
238
|
title="HtmlPreview"
|
|
240
|
-
srcDoc={htmlContent}
|
|
239
|
+
srcDoc={${htmlContent}}
|
|
241
240
|
/>
|
|
242
241
|
);
|
|
243
242
|
}`;
|