diff --git a/http/render.tsx b/http/render.tsx index 2e64edf28..02d3bb678 100644 --- a/http/render.tsx +++ b/http/render.tsx @@ -104,7 +104,7 @@ export class Render { const plaintext = JSON.stringify(this.#options.props); const encryptedData = await encryptData(importedKey, plaintext); - return `${env}window.__INITIAL_DATA__ = "${encryptedData}";`; + return ``; }; #initHtml = async (element: Component, html?: any) => { @@ -199,6 +199,13 @@ export class Render { > {el} + {this.#options.props && ( +
+ )} {this.#options.html?.body?.script && this.#options.html?.body?.script.map((s) => (