move isElectron check outside try catch
This commit is contained in:
parent
065a090608
commit
eb7f53deb1
|
@ -70,10 +70,10 @@ export default function ExportModal(props: Props) {
|
|||
// SIDE EFFECTS
|
||||
// ====================
|
||||
useEffect(() => {
|
||||
try {
|
||||
if (!isElectron()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
setExportFolder(getData(LS_KEYS.EXPORT)?.folder);
|
||||
|
||||
exportService.electronAPIs.registerStopExportListener(stopExport);
|
||||
|
|
Loading…
Reference in a new issue