From 8d95d5eb93747eef40a58ac2f06c393433191595 Mon Sep 17 00:00:00 2001 From: choibk Date: Mon, 19 Jan 2026 19:50:10 +0900 Subject: [PATCH] Disable global context menu to prevent 'Save As' --- src/App.jsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/App.jsx b/src/App.jsx index 055c38e..94a2a98 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -25,6 +25,17 @@ function ScrollToTopComp() { } function App() { + // Global Content Protection + useEffect(() => { + const handleContextMenu = (e) => { + e.preventDefault(); + }; + document.addEventListener('contextmenu', handleContextMenu); + return () => { + document.removeEventListener('contextmenu', handleContextMenu); + }; + }, []); + return (