diff --git a/client/src/App.jsx b/client/src/App.jsx index 0ef4090..d5ac504 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -241,6 +241,15 @@ function App() { } }, [showTextEditor, socket, hasCollaborationStarted]); + // Hook to display a message when someone opens the app through vercel's url + useEffect(() => { + const isVercel = window.location.hostname === "https://drawrtcbyajeet.vercel.app/" + if (isVercel) { + setMessageText("Collaborative features require local installation. For more information, please visit our GitHub repository (linked in the menu)."); + setShowMenu(true); + } + }, []); + return (
{ + const gitLink = "https://github.com/apsinghdev/drawRTC?tab=readme-ov-file#note"; + window.open(gitLink, "_blank"); + } + return (
{hasCollaborationStarted ? ( @@ -93,6 +98,7 @@ function Menu(){ +