"use client"; // app/wait/page.jsx import { useEffect } from "react"; import { useRouter } from "next/navigation"; import { ClipLoader } from "react-spinners"; // IndexedDB functions only in the browser let storePage, getPage; if (typeof window !== "undefined") { const indexedDBModule = require("../utils/indexedDB"); storePage = indexedDBModule.storePage; getPage = indexedDBModule.getPage; } export default function WaitPage() { const router = useRouter(); useEffect(() => { // Store the page as a Blob in IndexedDB in the background if (typeof window !== "undefined" && storePage) { const pageContent = `
Die Seite wird automatisch neu geladen.
Die Seite wird automatisch neu geladen.