diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-03-14 14:27:23 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2018-03-14 14:27:23 +0100 |
commit | 2f2175b3c0460f722ea710e119373f87f36f80c4 (patch) | |
tree | 9f16db2ece17417c5494b9cc56ca95053a824a82 /src/index.js | |
parent | remove unnecessary ensureDir as emptyDirSync creates that path anyway (diff) | |
download | ferdium-app-2f2175b3c0460f722ea710e119373f87f36f80c4.tar.gz ferdium-app-2f2175b3c0460f722ea710e119373f87f36f80c4.tar.zst ferdium-app-2f2175b3c0460f722ea710e119373f87f36f80c4.zip |
Ensure that window-state.json always exists
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
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; | |||
19 | 19 | ||
20 | // Ensure that the recipe directory exists | 20 | // Ensure that the recipe directory exists |
21 | fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); | 21 | fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); |
22 | fs.ensureFileSync(path.join(app.getPath('userData'), 'window-state.json')); | ||
22 | 23 | ||
23 | // Set App ID for Windows | 24 | // Set App ID for Windows |
24 | if (isWindows) { | 25 | if (isWindows) { |