From abd6fd44063b7f702a82e29a247679ff63c7e8d6 Mon Sep 17 00:00:00 2001 From: Yanu Widodo <10122431+ynwd@users.noreply.github.com> Date: Tue, 31 Oct 2023 06:48:45 +0700 Subject: [PATCH 1/2] update #initHtml --- http/render.tsx | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/http/render.tsx b/http/render.tsx index 2e64edf28..d5b2093f7 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,9 @@ export class Render { > {el} +
{this.#options.html?.body?.script && this.#options.html?.body?.script.map((s) => (