diff --git a/apps/readest-app/src/app/layout.tsx b/apps/readest-app/src/app/layout.tsx index 69c53c2f..4a3deabd 100644 --- a/apps/readest-app/src/app/layout.tsx +++ b/apps/readest-app/src/app/layout.tsx @@ -16,6 +16,14 @@ export default function RootLayout({ children }: { children: React.ReactNode }) document.documentElement.setAttribute('data-page', pathname.replace('/', '') || 'default'); }, [pathname]); + React.useEffect(() => { + if (process.env['NODE_ENV'] === 'production') { + document.oncontextmenu = (event) => { + event.preventDefault(); + }; + } + }, []); + return (
diff --git a/apps/readest-app/src/app/library/components/Bookshelf.tsx b/apps/readest-app/src/app/library/components/Bookshelf.tsx index fdec9f33..182fa3a4 100644 --- a/apps/readest-app/src/app/library/components/Bookshelf.tsx +++ b/apps/readest-app/src/app/library/components/Bookshelf.tsx @@ -97,7 +97,10 @@ const Bookshelf: React.FC