mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-06 01:41:48 +02:00
Fix isDevelopment check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}, []);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user