mirror of
https://github.com/meshtastic/web.git
synced 2026-07-30 22:46:30 -04:00
chore: remove production console noise (#1281)
Drop the debug log inside ChannelChat's MessageSkeleton (fired on every Suspense fallback) and gate the dev-overrides log on isDev so it stops running at module load in prod. Closes #1275 Closes #1276
This commit is contained in:
@@ -77,7 +77,6 @@ const DateDelimiter = ({ label }: { label: string }) => (
|
||||
);
|
||||
|
||||
const MessageSkeleton = () => {
|
||||
console.log("[ChannelChat] Showing MessageSkeleton (Suspense fallback)");
|
||||
return (
|
||||
<li className="group w-full py-2 relative list-none rounded-md">
|
||||
<div className="grid grid-cols-[auto_1fr] gap-x-2">
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { featureFlags } from "@core/services/featureFlags";
|
||||
|
||||
const isDev = typeof import.meta !== "undefined" && import.meta.env?.DEV;
|
||||
console.log(`Dev mode: ${isDev}`);
|
||||
|
||||
if (isDev) {
|
||||
console.log(`Dev mode: ${isDev}`);
|
||||
featureFlags.setOverrides({
|
||||
persistMessages: true,
|
||||
persistApp: true,
|
||||
|
||||
Reference in New Issue
Block a user