We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41b86c7 commit 013ce46Copy full SHA for 013ce46
client/src/App.jsx
@@ -241,6 +241,15 @@ function App() {
241
}
242
}, [showTextEditor, socket, hasCollaborationStarted]);
243
244
+ // Hook to display a message when someone opens the app through vercel's url
245
+ useEffect(() => {
246
+ const isVercel = window.location.hostname === "https://drawrtcbyajeet.vercel.app/"
247
+ if (isVercel) {
248
+ setMessageText("Collaborative features require local installation. For more information, please visit our GitHub repository (linked in the menu).");
249
+ setShowMenu(true);
250
+ }
251
+ }, []);
252
+
253
return (
254
<div id="container">
255
<Sidebar
0 commit comments