MCPcopy Create free account
hub / github.com/dailydotdev/apps / ErrorPage

Function ErrorPage

packages/webapp/pages/error.tsx:6–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { useEffect } from 'react';
5
6function ErrorPage(): ReactElement | null {
7 useEffect(() => {
8 const urlSearchParams = new URLSearchParams(window.location.search);
9 const params = Object.fromEntries(urlSearchParams.entries());
10 postWindowMessage(AuthEvent.Error, params);
11 if (!isPWA()) {
12 window.close();
13 }
14 }, []);
15
16 return null;
17}
18
19export default ErrorPage;

Callers

nothing calls this directly

Calls 3

postWindowMessageFunction · 0.90
isPWAFunction · 0.90
closeMethod · 0.80

Tested by

no test coverage detected