From d17d475dba2bcb3df67159a22dff14449c4314bb Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Sat, 16 Apr 2022 18:14:07 -0400 Subject: [PATCH] Work on launcher and config --- config.json.default | 2 +- index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.json.default b/config.json.default index da72708..12734a7 100644 --- a/config.json.default +++ b/config.json.default @@ -1,7 +1,7 @@ { "account_id": null, "event_id": null, - "event_device_id": null + "event_device_id": null, "event_location_id": null, "event_session_id": null, "event_presentation_id": null, diff --git a/index.js b/index.js index fd917f5..4475a3b 100644 --- a/index.js +++ b/index.js @@ -123,14 +123,14 @@ ipcMain.handle('import_config', async (event, config_data) => { if (fs.existsSync(host_file_cache_path)) { console.log('Host file cache path exists: '+host_file_cache_path); } else { - fs.mkdirSync(host_file_cache_path); + fs.mkdirSync(host_file_cache_path, true); console.log('Host file cache path created: '+host_file_cache_path); } if (fs.existsSync(host_file_temp_path)) { console.log('Host file temp path exists: '+host_file_temp_path); } else { - fs.mkdirSync(host_file_temp_path); + fs.mkdirSync(host_file_temp_path, true); console.log('Host file temp path created: '+host_file_temp_path); }