Fix isDevelopment check

This commit is contained in:
Elio Struyf
2023-02-28 19:33:57 +01:00
parent cbeda07d25
commit cf29121bc0
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -62,8 +62,7 @@ export const App: React.FunctionComponent<IAppProps> = ({
}, [view]);
useEffect(() => {
console.log(window.fmExternal)
if (window.fmExternal.isDevelopment) {
if (window.fmExternal && window.fmExternal.isDevelopment) {
setIsDevMode(true);
}
}, []);
+1 -2
View File
@@ -33,8 +33,7 @@ export const ViewPanel: React.FunctionComponent<IViewPanelProps> = (
} = useMessages();
useEffect(() => {
console.log(window.fmExternal)
if (window.fmExternal.isDevelopment) {
if (window.fmExternal && window.fmExternal.isDevelopment) {
setIsDevMode(true);
}
}, []);