From 95574422942cfb24086ead0ffc47a3aa3dc259cb Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Fri, 29 Aug 2025 19:05:36 +0000 Subject: [PATCH] fix(challenge/preact): use JSX fragments Signed-off-by: Xe Iaso --- lib/challenge/preact/js/app.jsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/challenge/preact/js/app.jsx b/lib/challenge/preact/js/app.jsx index 1335324e..10decac2 100644 --- a/lib/challenge/preact/js/app.jsx +++ b/lib/challenge/preact/js/app.jsx @@ -1,9 +1,10 @@ -import { render, h } from 'preact'; +import { render, h, Fragment } from 'preact'; import { useState, useEffect } from 'preact/hooks'; import { g, j, u } from "./xeact.js"; import { Sha256 } from '@aws-crypto/sha256-js'; /** @jsx h */ +/** @jsxFrag Fragment */ function toHexString(arr) { return Array.from(arr) @@ -45,17 +46,17 @@ const App = () => { }, [passed]); return ( -
+ <> {imageURL !== null && ( )} {state !== null && ( -
+ <>

{state.loading_message}

{state.connection_security_message}

-
+ )} -
+ ); };