chore: Use isDevEnv() and isTestEnv() (#9264)

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mursaleen Nisar
2025-03-25 00:14:00 +05:30
committed by GitHub
parent 77aca48c84
commit e1bb59fb8f
16 changed files with 48 additions and 45 deletions

View File

@ -36,6 +36,7 @@ import {
preventUnload,
resolvablePromise,
isRunningInIframe,
isDevEnv,
} from "@excalidraw/excalidraw/utils";
import {
GithubIcon,
@ -383,7 +384,7 @@ const ExcalidrawWrapper = () => {
const [, forceRefresh] = useState(false);
useEffect(() => {
if (import.meta.env.DEV) {
if (isDevEnv()) {
const debugState = loadSavedDebugState();
if (debugState.enabled && !window.visualDebug) {