aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-03-14 14:27:23 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-03-14 14:27:23 +0100
commit2f2175b3c0460f722ea710e119373f87f36f80c4 (patch)
tree9f16db2ece17417c5494b9cc56ca95053a824a82 /src
parentremove unnecessary ensureDir as emptyDirSync creates that path anyway (diff)
downloadferdium-app-2f2175b3c0460f722ea710e119373f87f36f80c4.tar.gz
ferdium-app-2f2175b3c0460f722ea710e119373f87f36f80c4.tar.zst
ferdium-app-2f2175b3c0460f722ea710e119373f87f36f80c4.zip
Ensure that window-state.json always exists
Diffstat (limited to 'src')
-rw-r--r--src/index.js1
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
21fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); 21fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp'));
22fs.ensureFileSync(path.join(app.getPath('userData'), 'window-state.json'));
22 23
23// Set App ID for Windows 24// Set App ID for Windows
24if (isWindows) { 25if (isWindows) {