mirror of
https://github.com/tlsnotary/tlsn-plugin-demo.git
synced 2026-01-08 04:54:07 -05:00
* Add interactive verifier demo * Serve and load plugin from local file * Show screenname at the end + removed attestation code * No more need for tlsn-js * Updated Docker container * Use environment variable to enable/disable POAPs * Improved UI * use LRU for tracking sessions Co-authored-by: Hendrik Eeckhaut <hendrik@eeckhaut.org>
27 lines
535 B
TypeScript
27 lines
535 B
TypeScript
import 'isomorphic-fetch';
|
|
import * as React from 'react';
|
|
import { hydrateRoot } from 'react-dom/client';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
import App from './pages/App';
|
|
|
|
// @ts-ignore
|
|
delete window.__PRELOADED_STATE__;
|
|
|
|
(async () => {
|
|
hydrateRoot(
|
|
document.getElementById('root')!,
|
|
<BrowserRouter
|
|
future={{
|
|
v7_startTransition: true,
|
|
v7_relativeSplatPath: true,
|
|
}}
|
|
>
|
|
<App />
|
|
</BrowserRouter>
|
|
);
|
|
})();
|
|
|
|
if ((module as any).hot) {
|
|
(module as any).hot.accept();
|
|
}
|