From 2f2175b3c0460f722ea710e119373f87f36f80c4 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Wed, 14 Mar 2018 14:27:23 +0100 Subject: Ensure that window-state.json always exists --- src/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index 2542e69cc..96bcea4ac 100644 --- a/src/index.js +++ b/src/index.js @@ -19,6 +19,7 @@ let willQuitApp = false; // Ensure that the recipe directory exists fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); +fs.ensureFileSync(path.join(app.getPath('userData'), 'window-state.json')); // Set App ID for Windows if (isWindows) { -- cgit v1.2.3-70-g09d2