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}

-
+ )} -
+ ); };