diff --git a/src/components/settings/ConfigPanels/ExternalConfig.tsx b/src/components/settings/ConfigPanels/ExternalConfig.tsx index bfaed57..d3df248 100644 --- a/src/components/settings/ConfigPanels/ExternalConfig.tsx +++ b/src/components/settings/ConfigPanels/ExternalConfig.tsx @@ -14,7 +14,7 @@ import { useAppDispatch, useAppSelector } from '../../../redux/hooks'; import { setOBS } from '../../../redux/configSlice'; import ConfigOption from '../ConfigOption'; -const { dialog } = require('electron').remote; +const dialog: any = process.env.NODE_ENV === 'test' ? '' : require('electron').remote.dialog; const ExternalConfig = () => { const dispatch = useAppDispatch();