|
@@ -1,12 +1,20 @@
|
|
import { CustomHead } from "@/next/components/Head";
|
|
import { CustomHead } from "@/next/components/Head";
|
|
|
|
+import { logUnhandledErrorsAndRejections } from "@/next/log-web";
|
|
import { APPS, APP_TITLES } from "@ente/shared/apps/constants";
|
|
import { APPS, APP_TITLES } from "@ente/shared/apps/constants";
|
|
import { getTheme } from "@ente/shared/themes";
|
|
import { getTheme } from "@ente/shared/themes";
|
|
import { THEME_COLOR } from "@ente/shared/themes/constants";
|
|
import { THEME_COLOR } from "@ente/shared/themes/constants";
|
|
import { CssBaseline, ThemeProvider } from "@mui/material";
|
|
import { CssBaseline, ThemeProvider } from "@mui/material";
|
|
import type { AppProps } from "next/app";
|
|
import type { AppProps } from "next/app";
|
|
|
|
+import { useEffect } from "react";
|
|
|
|
+
|
|
import "styles/global.css";
|
|
import "styles/global.css";
|
|
|
|
|
|
export default function App({ Component, pageProps }: AppProps) {
|
|
export default function App({ Component, pageProps }: AppProps) {
|
|
|
|
+ useEffect(() => {
|
|
|
|
+ logUnhandledErrorsAndRejections(true);
|
|
|
|
+ return () => logUnhandledErrorsAndRejections(false);
|
|
|
|
+ }, []);
|
|
|
|
+
|
|
return (
|
|
return (
|
|
<>
|
|
<>
|
|
<CustomHead title={APP_TITLES.get(APPS.PHOTOS)} />
|
|
<CustomHead title={APP_TITLES.get(APPS.PHOTOS)} />
|